diff options
author | linsui <linsui555@gmail.com> | 2022-11-18 10:53:56 +0800 |
---|---|---|
committer | linsui <linsui555@gmail.com> | 2022-11-19 17:50:51 +0800 |
commit | 6120738eaad48d46ec81f90c62762886fc557c37 (patch) | |
tree | a5f321d6c6ed3cb680af406b666569057ce7b988 | |
parent | 8bf7da4b3f250da07a5fd6a080755a6c0ecd9479 (diff) |
nixos/firefox: fix "The option is used but not defined"
-rw-r--r-- | nixos/modules/programs/firefox.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/nixos/modules/programs/firefox.nix b/nixos/modules/programs/firefox.nix index 76e6c1a553f3..c1bb0b3e3612 100644 --- a/nixos/modules/programs/firefox.nix +++ b/nixos/modules/programs/firefox.nix @@ -69,12 +69,13 @@ in { config = mkIf cfg.enable { environment.systemPackages = [ cfg.package ]; - environment.etc."firefox/policies/policies.json".source = - let policiesJSON = - policyFormat.generate - "firefox-policies.json" - { inherit (cfg) policies; }; - in mkIf (cfg.policies != {}) "${policiesJSON}"; + environment.etc = + let + policiesJSON = policyFormat.generate "firefox-policies.json" { inherit (cfg) policies; }; + in + mkIf (cfg.policies != { }) { + "firefox/policies/policies.json".source = "${policiesJSON}"; + }; # Preferences are converted into a policy programs.firefox.policies = |