diff --git a/base/default.nix b/base/default.nix index eca8422..35ec4f2 100644 --- a/base/default.nix +++ b/base/default.nix @@ -1,6 +1,7 @@ { ... }: { imports = [ + ./nix.nix ./users.nix ]; } diff --git a/base/nix.nix b/base/nix.nix new file mode 100644 index 0000000..fe539b1 --- /dev/null +++ b/base/nix.nix @@ -0,0 +1,22 @@ +{ pkgs, ... }: +{ + nix = { + package = pkgs.nixUnstable; + extraOptions = '' + experimental-features = nix-command flakes + ''; + + binaryCaches = [ + "https://alarsyo.cachix.org" + ]; + binaryCachePublicKeys = [ + "alarsyo.cachix.org-1:A6BmcaJek5+ZDWWv3fPteHhPm6U8liS9CbDbmegPfmk=" + ]; + + gc = { + automatic = true; + dates = "03:15"; + options = "--delete-older-than 30d"; + }; + }; +} diff --git a/hosts/poseidon/default.nix b/hosts/poseidon/default.nix index 44e8409..52141ab 100644 --- a/hosts/poseidon/default.nix +++ b/hosts/poseidon/default.nix @@ -121,24 +121,4 @@ in boot.supportedFilesystems = [ "btrfs" ]; - - nix = { - package = pkgs.nixUnstable; - extraOptions = '' - experimental-features = nix-command flakes - ''; - - binaryCaches = [ - "https://alarsyo.cachix.org" - ]; - binaryCachePublicKeys = [ - "alarsyo.cachix.org-1:A6BmcaJek5+ZDWWv3fPteHhPm6U8liS9CbDbmegPfmk=" - ]; - - gc = { - automatic = true; - dates = "03:15"; - options = "--delete-older-than 30d"; - }; - }; }