fix update service

This commit is contained in:
Noa Aarts 2024-05-14 09:59:49 +02:00
parent 4352e7eeef
commit ca1469ce28

View file

@ -248,9 +248,11 @@
systemd.services."update-flake" = { systemd.services."update-flake" = {
script = '' script = ''
nix flake update --commit-lock-file /home/noa/nixos/ cd /root/nixconf
nixos-rebuild switch --flake /home/noa/nixos/ git pull
git -C /home/noa/nixos/ push nix flake update --commit-lock-file /root/nixconf
nixos-rebuild switch --flake .
git push
''; '';
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";