mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
mkFirefoxModule: set NoDefaultBookmarks when a profile has bookmarks are enabled
This resolves issue that someone might try and configure bookmarks and a policy will prevent it from applying properly. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
9d21f9985e
commit
dbac1fbcd6
1 changed files with 3 additions and 0 deletions
|
|
@ -972,6 +972,9 @@ in
|
||||||
release = mkOptionDefault (builtins.head (lib.splitString "-" cfg.package.version));
|
release = mkOptionDefault (builtins.head (lib.splitString "-" cfg.package.version));
|
||||||
|
|
||||||
policies = {
|
policies = {
|
||||||
|
NoDefaultBookmarks = lib.mkIf (builtins.any (profile: profile.bookmarks.enable) (
|
||||||
|
builtins.attrValues cfg.profiles
|
||||||
|
)) false;
|
||||||
ExtensionSettings = lib.mkIf (cfg.languagePacks != [ ]) (
|
ExtensionSettings = lib.mkIf (cfg.languagePacks != [ ]) (
|
||||||
lib.listToAttrs (
|
lib.listToAttrs (
|
||||||
map (
|
map (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue