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" = {
|
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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue