change update module to use simple systemd service

This commit is contained in:
Sam 2025-01-26 13:12:19 +00:00
parent fd8fc7a8dd
commit 2d225a21bd
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -70,7 +70,7 @@ in
systemd = {
services."nixos-upgrade" = {
serviceConfig = {
Type = "oneshot";
Type = "simple";
User = "root";
};
path = ["/run/current-system/sw"];