diff --git a/config/common/default.nix b/config/common/default.nix index 3e01ad4..cef951a 100644 --- a/config/common/default.nix +++ b/config/common/default.nix @@ -5,6 +5,7 @@ ./default-host-platform.nix ./default-state-version.nix ./localization.nix + ./nix.nix ./ssh.nix ./users.nix ]; diff --git a/config/common/nix.nix b/config/common/nix.nix new file mode 100644 index 0000000..bab7829 --- /dev/null +++ b/config/common/nix.nix @@ -0,0 +1,16 @@ +{ ... }: + +{ + nix = { + settings = { + trusted-users = [ "@wheel" ]; + auto-optimise-store = true; + experimental-features = [ "nix-command" "flakes" ]; + }; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; + }; +}