diff options
author | ene <ene@sils.li> | 2023-02-20 08:45:56 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-20 10:40:41 +0100 |
commit | 3ee8467b9a6382641543e2ac485d5c2623e9b0c4 (patch) | |
tree | c121a13230b36557eb76890a1f920cfd667efe29 /home-manager/config/firefox | |
parent | Feat(bootstrap): Add a script for quick activation (diff) | |
download | nixos-config-3ee8467b9a6382641543e2ac485d5c2623e9b0c4.tar.gz nixos-config-3ee8467b9a6382641543e2ac485d5c2623e9b0c4.zip |
Feat(flake): Move the in and outputs to separate files
Diffstat (limited to '')
-rw-r--r-- | home-manager/config/firefox/default.nix | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/home-manager/config/firefox/default.nix b/home-manager/config/firefox/default.nix index 3f338192..df312a6c 100644 --- a/home-manager/config/firefox/default.nix +++ b/home-manager/config/firefox/default.nix @@ -4,7 +4,6 @@ pkgs, lib, stdenv, - strip_js_comments, generate_extensions, user_js, system, @@ -14,16 +13,16 @@ user_js_override = pkgs.writeText "user.override.js" (builtins.readFile ./settings/override.js); user_js_nix = pkgs.runCommand "user.js" {} '' - mkdir $out; - cat "${user_js}/user.js" > $out/user.js; - cat "${user_js_override}" >> $out/user.js; - - "${strip_js_comments.app.${system}.default.program}" $out/user.js > $out/user_clean.js; - # echo "{" > $out/user.nix.tmp - # sed 's/user_pref(\(.*\)",\(.*\));/\1" = \2;/' $out/user_clean.js >> $out/user.nix.tmp; - # echo "}" >> $out/user.nix.tmp - # awk '!/"_user.js.parrot"/' $out/user.nix.tmp >> $out/user.nix; # delete duplicate keys + mkdir $out; + cat "${user_js}/user.js" > $out/user.js; + cat "${user_js_override}" >> $out/user.js; + # TODO look for wehre my configs gets append to, to top or the bottom of the file ''; + #"${strip_js_comments.app.${system}.default.program}" $out/user.js > $out/user_clean.js; + # echo "{" > $out/user.nix.tmp + # sed 's/user_pref(\(.*\)",\(.*\));/\1" = \2;/' $out/user_clean.js >> $out/user.nix.tmp; + # echo "}" >> $out/user.nix.tmp + # awk '!/"_user.js.parrot"/' $out/user.nix.tmp >> $out/user.nix; # delete duplicate keys extensions = builtins.map buildFirefoxXpiAddon ( lib.attrValues ( |