This commit is contained in:
Charlotte 🦝 Delenk 2024-10-31 19:09:50 +01:00
parent cbfab6a273
commit 8d3cdbac95

View file

@ -27,7 +27,7 @@ with lib; {
config.nix.auto-update.enable = mkDefault true; config.nix.auto-update.enable = mkDefault true;
config.nix.auto-update.reboot = mkDefault true; config.nix.auto-update.reboot = mkDefault true;
systemd.services.nixos-upgrade = { config.systemd.services.nixos-upgrade = {
description = "NixOS Upgrade"; description = "NixOS Upgrade";
restartIfChanged = false; restartIfChanged = false;
unitConfig.X-StopOnRemoval = false; unitConfig.X-StopOnRemoval = false;
@ -70,7 +70,7 @@ with lib; {
''; '';
}; };
systemd.timers.nixos-upgrade = { config.systemd.timers.nixos-upgrade = {
enable = config.nix.auto-update.enable; enable = config.nix.auto-update.enable;
description = "Automatically update nixos"; description = "Automatically update nixos";
requires = ["nixos-upgrade.service"]; requires = ["nixos-upgrade.service"];