diff options
author | tilpner | 2020-04-05 20:48:13 +0200 |
---|---|---|
committer | tilpner | 2020-04-05 20:51:20 +0200 |
commit | 58a4f76dcad054cac6d5624b6f95e23145c16ae1 (patch) | |
tree | c8411c894bb93e58674cf344385e4c383adf6318 /nix | |
parent | 5014c0ed2160393fb787b585127bce8f27fda722 (diff) | |
download | firefox-profiles-58a4f76dcad054cac6d5624b6f95e23145c16ae1.tar.gz firefox-profiles-58a4f76dcad054cac6d5624b6f95e23145c16ae1.tar.xz firefox-profiles-58a4f76dcad054cac6d5624b6f95e23145c16ae1.zip |
ocsp, safebrowsing: refactor to finer choices per topic
Diffstat (limited to 'nix')
-rw-r--r-- | nix/lib.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nix/lib.nix b/nix/lib.nix index 12940b1..1095ab4 100644 --- a/nix/lib.nix +++ b/nix/lib.nix @@ -19,7 +19,7 @@ rec { else abort "unsupported value type: ${builtins.typeOf v}"; mkPrefs = settings: pkgs.writeText "prefs.js" - ("// dummy line\n" + + ("// dummy line\n" + (lib.concatStringsSep "\n" (lib.mapAttrsToList (k: v: "pref(\"${k}\", ${mkValueString v}, locked);") (flattenAttrs settings)))); @@ -39,7 +39,7 @@ rec { inherit policies; }); - mergeProfiles = profiles: + mergeProfiles = profiles: let sanitise = args: { policies = args.policies or {}; @@ -55,7 +55,7 @@ rec { policies' = mkPolicies policies; preferences' = mkPrefs preferences; patched = pkgs.runCommand "firefox-bundle" { - nativeBuildInputs = [ pkgs.nix ]; + nativeBuildInputs = [ pkgs.nix ]; disallowedReferences = [ firefox ]; } '' cp -r ${firefox} $out |