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"];