diff --git a/modules/system/git-auto-rebuild.nix b/modules/system/git-auto-rebuild.nix index d3ad5f9..dee9e19 100644 --- a/modules/system/git-auto-rebuild.nix +++ b/modules/system/git-auto-rebuild.nix @@ -8,7 +8,7 @@ # startAt = "*:0/1"; serviceConfig = { Type = "simple"; - ExecStart = "/run/current-system/sw/bin/bash -c '/etc/nixos && git pull && sudo nixos-rebuild switch --flake #$(hostname)'"; + ExecStart = "/run/current-system/sw/bin/bash -c 'cd /etc/nixos && git pull && sudo nixos-rebuild switch --flake #$(hostname)'"; }; };