Add timeout to automatic updates
This commit is contained in:
parent
46f06301f7
commit
b08c7f8abf
1 changed files with 189 additions and 186 deletions
|
|
@ -47,7 +47,9 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
email.enable = true;
|
||||
systemd.services.nixos-upgrade.script = mkOverride 50 (
|
||||
systemd.services.nixos-upgrade = {
|
||||
serviceConfig.TimeoutStartSec = "2h";
|
||||
script = mkOverride 50 (
|
||||
let
|
||||
nixos-rebuild = "${config.system.build.nixos-rebuild}/bin/nixos-rebuild";
|
||||
nix-store = "${pkgs.nix}/bin/nix-store";
|
||||
|
|
@ -254,4 +256,5 @@ in
|
|||
''
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue