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" = {
script = ''
nix flake update --commit-lock-file /home/noa/nixos/
nixos-rebuild switch --flake /home/noa/nixos/
git -C /home/noa/nixos/ push
cd /root/nixconf
git pull
nix flake update --commit-lock-file /root/nixconf
nixos-rebuild switch --flake .
git push
'';
serviceConfig = {
Type = "oneshot";