about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-10-31 17:46:35 +0100
committerSoispha <soispha@vhack.eu>2023-10-31 17:46:35 +0100
commit3f3141ed2a979c0b6cc643b650547a674eb30193 (patch)
tree2710c7e204697aadff42dd729706328ab81174fb
parentbuild(treewide): Update (diff)
downloadnixos-config-3f3141ed2a979c0b6cc643b650547a674eb30193.tar.gz
nixos-config-3f3141ed2a979c0b6cc643b650547a674eb30193.zip
fix(hm/conf/firefox/pkg): Adapt to new override options in nixpkgs
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/firefox/package.nix17
1 files changed, 3 insertions, 14 deletions
diff --git a/hm/soispha/conf/firefox/package.nix b/hm/soispha/conf/firefox/package.nix
index f38c8bbe..5d2b242e 100644
--- a/hm/soispha/conf/firefox/package.nix
+++ b/hm/soispha/conf/firefox/package.nix
@@ -11,21 +11,10 @@
   base_package ? pkgs.firefox,
 }: let
   pkg = base_package.override (old: {
+    extraPrefsFiles = old.extraPrefsFiles or [] ++ [(pkgs.writeText "firefox-autoconfig.js" autoConfig)];
+    nativeMessagingHosts = old.nativeMessagingHosts or [] ++ extraNativeMessagingHosts;
+    cfg = (old.cfg or {}) // wrapperConfig;
     inherit extraPolicies;
-    extraPrefs = autoConfig;
-    extraNativeMessagingHosts =
-      old.extraNativeMessagingHosts
-      or []
-      ++ extraNativeMessagingHosts;
-    cfg = let
-      # copy-pasted from the wrapper; TODO: figure out fix
-      applicationName = base_package.binaryName or (lib.getName base_package);
-
-      oldCfg = old.cfg or {};
-      nixpkgsConfig = pkgs.config.${applicationName} or {};
-      optionConfig = wrapperConfig;
-    in
-      oldCfg // nixpkgsConfig // optionConfig;
   });
 in
   pkg