bugfix(stylix): Ensure stable compatibility
This commit is contained in:
parent
0314b75a02
commit
ac77341f62
1 changed files with 4 additions and 2 deletions
|
|
@ -121,7 +121,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
config = lib.mkIf (config.mods.browser.zen.enable || config.mods.homePackages.browser == "zen") (
|
config = lib.mkIf (config.mods.browser.zen.enable || config.mods.homePackages.browser == "zen") (
|
||||||
lib.optionalAttrs (options ? home.packages) {
|
(lib.optionalAttrs (options ? home.packages) {
|
||||||
programs.zen-browser = {
|
programs.zen-browser = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package =
|
package =
|
||||||
|
|
@ -149,7 +149,9 @@ in {
|
||||||
};
|
};
|
||||||
profiles = builtins.listToAttrs config.mods.browser.zen.profiles;
|
profiles = builtins.listToAttrs config.mods.browser.zen.profiles;
|
||||||
};
|
};
|
||||||
|
})
|
||||||
|
// (lib.optionalAttrs (options ? stylix.targets.zen-browser) {
|
||||||
stylix.targets.zen-browser.profileNames = lib.map (profile: profile.name) config.mods.browser.zen.profiles;
|
stylix.targets.zen-browser.profileNames = lib.map (profile: profile.name) config.mods.browser.zen.profiles;
|
||||||
}
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue