fix update service
This commit is contained in:
parent
4352e7eeef
commit
ca1469ce28
1 changed files with 5 additions and 3 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue