1
1
Fork 0

chromium: fix option not using final package

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-12-22 07:13:48 -05:00
parent 213e4bb68e
commit 8f0fb577da
Signed by: myned
GPG key ID: C7224454F7881A34

View file

@ -39,7 +39,16 @@ in {
wallpaper = mkOption {default = false;}; wallpaper = mkOption {default = false;};
browser = { browser = {
command = mkOption {default = "${config.custom.programs.chromium.package}/bin/google-chrome-stable";}; # HACK: Find first matching package in final home-manager list
command = mkOption {
default = "${lib.findFirst (pkg:
if (lib.hasAttr "pname" pkg)
then pkg.pname == "google-chrome"
else false)
null
config.home-manager.users.${config.custom.username}.home.packages}/bin/google-chrome-stable";
};
desktop = mkOption {default = "google-chrome.desktop";}; desktop = mkOption {default = "google-chrome.desktop";};
}; };