chromium: fix option not using final package
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
213e4bb68e
commit
8f0fb577da
1 changed files with 10 additions and 1 deletions
|
@ -39,7 +39,16 @@ in {
|
|||
wallpaper = mkOption {default = false;};
|
||||
|
||||
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";};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue