diff options
Diffstat (limited to 'modules/systems/nix.nix')
-rw-r--r-- | modules/systems/nix.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/systems/nix.nix b/modules/systems/nix.nix new file mode 100644 index 0000000..4b97121 --- /dev/null +++ b/modules/systems/nix.nix @@ -0,0 +1,17 @@ +{ lib, pkgs, ... }: + +{ + nix.extraOptions = '' + experimental-features = nix-command + ''; + + nix.settings = { + auto-optimise-store = true; + trusted-users = [ "root" "@wheel" ]; + }; + + nix.gc = { + automatic = true; + options = "--delete-older-than 14d"; + }; +} |