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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# wait for wifi networks to come online.
|
||||||
|
sleep 10
|
||||||
|
|
||||||
cd $flakeDir
|
cd $flakeDir
|
||||||
|
|
||||||
current_branch=$(git branch --show-current)
|
current_branch=$(git branch --show-current)
|
||||||
|
|
|
@ -70,7 +70,7 @@ in
|
||||||
systemd = {
|
systemd = {
|
||||||
services."nixos-upgrade" = {
|
services."nixos-upgrade" = {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "simple";
|
||||||
User = "root";
|
User = "root";
|
||||||
};
|
};
|
||||||
path = ["/run/current-system/sw"];
|
path = ["/run/current-system/sw"];
|
||||||
|
|
Loading…
Reference in New Issue