From 400be88738fd6c8d18bcc439a81ee208b49bc749 Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Fri, 22 Dec 2023 23:50:14 +0400 Subject: [PATCH] nixos: service Type is simple Because API is not designed to wait for long-running start command. --- nixos/module.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/nixos/module.nix b/nixos/module.nix index ce778ac..20873a8 100644 --- a/nixos/module.nix +++ b/nixos/module.nix @@ -95,7 +95,6 @@ in path = [ pkgs.coreutils pkgs.gnutar pkgs.xz.bin pkgs.gzip pkgs.gitMinimal config.nix.package.out pkgs.nixos-rebuild ]; # TODO set proper timeout for reboot instead of service restart serviceConfig = { - Type = "oneshot"; User = "root"; KillMode = "none"; SendSIGKILL = "no"; @@ -118,7 +117,6 @@ in } // config.networking.proxy.envVars; path = [ pkgs.coreutils pkgs.gnutar pkgs.xz.bin pkgs.gzip pkgs.gitMinimal config.nix.package.out pkgs.nixos-rebuild ]; serviceConfig = { - Type = "oneshot"; User = "root"; KillMode = "none"; SendSIGKILL = "no"; @@ -140,7 +138,6 @@ in } // config.networking.proxy.envVars; path = [ pkgs.coreutils pkgs.gnutar pkgs.xz.bin pkgs.gzip pkgs.gitMinimal config.nix.package.out pkgs.nixos-rebuild ]; serviceConfig = { - Type = "oneshot"; User = "root"; ExecStart = "${pkgs.nixos-rebuild}/bin/nixos-rebuild switch --rollback --flake /etc/nixos#sp-nixos"; KillMode = "none";