diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/default.nix | 2 | ||||
-rw-r--r-- | modules/system/default.nix | 1 | ||||
-rw-r--r-- | modules/system/nix/default.nix | 16 |
3 files changed, 18 insertions, 1 deletions
diff --git a/modules/default.nix b/modules/default.nix index 5ec7ef8..189a313 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1 +1 @@ -{ ... }: { imports = [ ./hardware ]; } +{ ... }: { imports = [ ./hardware ./system ]; } diff --git a/modules/system/default.nix b/modules/system/default.nix new file mode 100644 index 0000000..94ac438 --- /dev/null +++ b/modules/system/default.nix @@ -0,0 +1 @@ +{ ... }: { imports = [ ./nix ]; } diff --git a/modules/system/nix/default.nix b/modules/system/nix/default.nix new file mode 100644 index 0000000..2ad20c3 --- /dev/null +++ b/modules/system/nix/default.nix @@ -0,0 +1,16 @@ +# Nix related settings +{ lib, pkgs, ... }: { + nix = { + package = pkgs.nixFlakes; + extraOptions = '' + experimental-features = nix-command flakes + ''; + autoOptimiseStore = true; + trustedUsers = [ "root" "@wheel" ]; + + gc = { + automatic = true; + options = "--delete-older-than 14d"; + }; + }; +} |