fix(systemd): correct path for nixos-upgrade service
Change the working directory from `/root` to `/root/nixcfg` in the `nixos-upgrade` systemd service to ensure the correct configuration repository is used. This update prevents potential errors due to fetching and resetting in the wrong directory.
This commit is contained in:
parent
1e5ceb6c73
commit
b0f42bce29
|
@ -44,7 +44,7 @@
|
|||
systemd.services.nixos-upgrade = {
|
||||
path = [ pkgs.git ];
|
||||
preStart = ''
|
||||
cd /root
|
||||
cd /root/nixcfg
|
||||
git fetch origin
|
||||
git reset --hard origin/HEAD
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue