From 2d225a21bd49118cdfb53f7a4ca2d1829d7042bf Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 26 Jan 2025 13:12:19 +0000 Subject: [PATCH] change update module to use simple systemd service --- bin/auto-update-nixos | 3 +++ modules/nixos/nixosAutoUpgrade.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/auto-update-nixos b/bin/auto-update-nixos index e18ab89..a068593 100755 --- a/bin/auto-update-nixos +++ b/bin/auto-update-nixos @@ -84,6 +84,9 @@ if [ -z "${flakeDir}" ]; then exit 1 fi +# wait for wifi networks to come online. +sleep 10 + cd $flakeDir current_branch=$(git branch --show-current) diff --git a/modules/nixos/nixosAutoUpgrade.nix b/modules/nixos/nixosAutoUpgrade.nix index 16c2842..7e28b8a 100644 --- a/modules/nixos/nixosAutoUpgrade.nix +++ b/modules/nixos/nixosAutoUpgrade.nix @@ -70,7 +70,7 @@ in systemd = { services."nixos-upgrade" = { serviceConfig = { - Type = "oneshot"; + Type = "simple"; User = "root"; }; path = ["/run/current-system/sw"];