diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/default.nix | 6 | ||||
| -rw-r--r-- | config/nix.nix | 8 |
2 files changed, 6 insertions, 8 deletions
diff --git a/config/default.nix b/config/default.nix index 89444af..dd22e26 100644 --- a/config/default.nix +++ b/config/default.nix @@ -10,15 +10,11 @@ ./users.nix ]; - # needed so that the server doesn't rebuild big packages - # originally enabled in modulesPath + profiles/minimal.nix - environment.noXlibs = false; - # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave # this value at the release version of the first install of this system. # Before changing this value read the documentation for this option # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). - system.stateVersion = "20.03"; # Did you read the comment? + system.stateVersion = "24.11"; # Did you read the comment? } diff --git a/config/nix.nix b/config/nix.nix index d0b6ba2..dae9061 100644 --- a/config/nix.nix +++ b/config/nix.nix @@ -18,7 +18,9 @@ setFlakeRegistry = true; }; - systemd.services.nixos-upgrade = { + systemd.services.nixos-upgrade = let + mkForce = lib.mkOverride 51; + in { # restart at most once every hour serviceConfig = { Restart = "on-failure"; @@ -27,8 +29,8 @@ MemoryHigh = "1G"; MemoryMax = "1.5G"; }; - startLimitBurst = 1; - startLimitIntervalSec = 3600; + startLimitBurst = mkForce 1; + startLimitIntervalSec = mkForce 3600; preStart = lib.mkAfter '' echo Dry-building... drvs=$(${pkgs.nixos-rebuild}/bin/nixos-rebuild dry-build --flake /etc/nixos/ 2>&1 | grep '/nix/store') |
