diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2024-12-01 22:59:58 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2024-12-01 23:28:59 +0100 |
| commit | 2f994c161ab21a5b675f28cd25947908f8ce80ed (patch) | |
| tree | f1d04e007a50ddef460287d2a4aef69ff12f6778 /config | |
| parent | 7082046cf78fd6a0bef7a968f7c751d45f9859a5 (diff) | |
upgrade to nixos 24.11
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') |
