about summary refs log tree commit diff stats
path: root/hm/soispha/conf/firefox/package.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-11-25 17:11:59 +0100
committerSoispha <soispha@vhack.eu>2023-11-25 17:33:39 +0100
commit2f28361d79cb080cb836940564e74683d3e34871 (patch)
tree069ce4827f527fce4f77c66377988345f0f25e3e /hm/soispha/conf/firefox/package.nix
parentchore(hm/soispha/conf/taskwarrior/projects): Update (diff)
downloadnixos-config-2f28361d79cb080cb836940564e74683d3e34871.tar.gz
nixos-config-2f28361d79cb080cb836940564e74683d3e34871.zip
fix(hm/conf/firefox/package): Readd policies to firefox
Diffstat (limited to 'hm/soispha/conf/firefox/package.nix')
-rw-r--r--hm/soispha/conf/firefox/package.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/hm/soispha/conf/firefox/package.nix b/hm/soispha/conf/firefox/package.nix
index 5d2b242e..f7e4319b 100644
--- a/hm/soispha/conf/firefox/package.nix
+++ b/hm/soispha/conf/firefox/package.nix
@@ -11,10 +11,20 @@
   base_package ? pkgs.firefox,
 }: let
   pkg = base_package.override (old: {
-    extraPrefsFiles = old.extraPrefsFiles or [] ++ [(pkgs.writeText "firefox-autoconfig.js" autoConfig)];
+    extraPrefsFiles =
+      (old.extraPrefsFiles or [])
+      ++ [
+        (pkgs.writeText "autoConfig.js" autoConfig)
+      ];
     nativeMessagingHosts = old.nativeMessagingHosts or [] ++ extraNativeMessagingHosts;
     cfg = (old.cfg or {}) // wrapperConfig;
-    inherit extraPolicies;
+    extraPoliciesFiles =
+      (old.extraPoliciesFiles or [])
+      ++ [
+        (
+          pkgs.writeText "policies.json" (builtins.toJSON extraPolicies)
+        )
+      ];
   });
 in
   pkg