diff options
author | ene <ene@sils.li> | 2023-02-17 16:53:15 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-17 16:53:15 +0100 |
commit | b95720eb1bf3350369e924987c25bbb1205a8851 (patch) | |
tree | 5bf6aa8b10dc1ae2ee29ceac65ff86cc22bd4d55 /services/nix/default.nix | |
parent | Feat(home-manager): Move configs in their own directory (diff) | |
download | nixos-config-b95720eb1bf3350369e924987c25bbb1205a8851.tar.gz nixos-config-b95720eb1bf3350369e924987c25bbb1205a8851.zip |
Feat(services): Use default.nix files
Diffstat (limited to 'services/nix/default.nix')
-rw-r--r-- | services/nix/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/services/nix/default.nix b/services/nix/default.nix new file mode 100644 index 00000000..27f9b170 --- /dev/null +++ b/services/nix/default.nix @@ -0,0 +1,22 @@ +{ + config, + lib, + pkgs, + ... +}: { + nix = { + gc = { + automatic = true; + dates = "daily"; + options = "--delete-older-than 3"; + }; + settings = { + auto-optimise-store = true; + experimental-features = ["nix-command" "flakes"]; + fallback = true; + + keep-failed = true; #keep failed tmp build dirs + pure-eval = true; # restrict file system and network access to hash + }; + }; +} |