diff --git a/hosts/desktop.nix b/hosts/desktop.nix index 24e1071..8bf1818 100644 --- a/hosts/desktop.nix +++ b/hosts/desktop.nix @@ -46,20 +46,27 @@ with lib.my; neovim ]; - nix.settings = { - connect-timeout = 5; - log-lines = 25; - min-free = 128000000; - max-free = 1000000000; - fallback = true; - auto-optimise-store = true; - substituters = [ - "http://odyssey.mesh.vimium.net" - "https://cache.nixos.org" - ]; - trusted-public-keys = [ - "odyssey.mesh.vimium.net:ZhQhjscPWjoN4rlZwoMELznEiBnZ9O26iyGA27ibilQ=" - ]; + nix = { + settings = { + connect-timeout = 5; + log-lines = 25; + min-free = 128000000; + max-free = 1000000000; + fallback = true; + auto-optimise-store = true; + substituters = [ + "http://odyssey.mesh.vimium.net" + "https://cache.nixos.org" + ]; + trusted-public-keys = [ + "odyssey.mesh.vimium.net:ZhQhjscPWjoN4rlZwoMELznEiBnZ9O26iyGA27ibilQ=" + ]; + }; + gc = { + automatic = true; + dates = "weekly"; + options = "-d --delete-older-than 7d"; + }; }; modules.desktop.gnome.enable = true; diff --git a/hosts/server.nix b/hosts/server.nix index 054176c..c0a34a0 100644 --- a/hosts/server.nix +++ b/hosts/server.nix @@ -34,6 +34,17 @@ with lib.my; neovim ]; + nix = { + settings = { + auto-optimise-store = true; + }; + gc = { + automatic = true; + dates = "weekly"; + options = "-d --delete-older-than 7d"; + }; + }; + modules.networking.tailscale = { enable = true; restrictSSH = false;