change update module to use simple systemd service
This commit is contained in:
parent
fd8fc7a8dd
commit
2d225a21bd
|
@ -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)
|
||||
|
|
|
@ -70,7 +70,7 @@ in
|
|||
systemd = {
|
||||
services."nixos-upgrade" = {
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Type = "simple";
|
||||
User = "root";
|
||||
};
|
||||
path = ["/run/current-system/sw"];
|
||||
|
|
Loading…
Reference in New Issue