From dd1e8193292d7a9728cef5daa513af0b3e2321ff Mon Sep 17 00:00:00 2001 From: xinyangli Date: Thu, 7 Dec 2023 00:00:43 +0800 Subject: [PATCH] massicot: turn on optimise --- machines/massicot/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/machines/massicot/default.nix b/machines/massicot/default.nix index 955d647..9b1dcd7 100644 --- a/machines/massicot/default.nix +++ b/machines/massicot/default.nix @@ -19,6 +19,14 @@ ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + nix.optimise.automatic = true; + nix.settings.auto-optimise-store = true; + system.stateVersion = "22.11"; @@ -32,7 +40,6 @@ PasswordAuthentication = false; }; }; - programs.mosh.enable = true; systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ];