diff --git a/nixos/roles/default.nix b/nixos/roles/default.nix index 3bef1ba9..6734b775 100644 --- a/nixos/roles/default.nix +++ b/nixos/roles/default.nix @@ -53,11 +53,6 @@ in { fallback = true keep-outputs = true ''; - gc = { - automatic = true; - dates = "Mon 4:00"; - options = "--delete-older-than 7d"; - }; }; systemd.services = let diff --git a/nixos/roles/standalone/default.nix b/nixos/roles/standalone/default.nix index da692769..6df34291 100644 --- a/nixos/roles/standalone/default.nix +++ b/nixos/roles/standalone/default.nix @@ -2,13 +2,13 @@ imports = [ ./admin.nix ]; - # So that boot does not fill up with old kernels boot = { plymouth.enable = true; loader = { timeout = 0; grub = { backgroundColor = "#000000"; + # So that boot does not fill up with old kernels configurationLimit = 5; }; }; @@ -22,9 +22,16 @@ security.sudo.extraConfig = "\n Defaults timestamp_type=global, timestamp_timeout=15\n "; - services = { sshd.enable = true; }; + services.sshd.enable = true; - nix.nixPath = [ "nixos-config=/etc/nixos/configuration.nix" ]; + nix = { + nixPath = [ "nixos-config=/etc/nixos/configuration.nix" ]; + gc = { + automatic = true; + dates = "Mon 4:00"; + options = "--delete-older-than 7d"; + }; + }; environment = { # Put these into an extra file so the essential packages can also be included on non selfadminstrated systems from home-manager