From ca1469ce28f8b5febe9f03c14d2a26898d8f101a Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Tue, 14 May 2024 09:59:49 +0200 Subject: [PATCH] fix update service --- hosts/default/configuration.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index 240dd2a..1217707 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -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";