diff --git a/modules/system/git-auto-rebuild.nix b/modules/system/git-auto-rebuild.nix index 763620b..d3ad5f9 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 && sudo nixos-rebuild switch --flake #${networking.hostName}'"; + ExecStart = "/run/current-system/sw/bin/bash -c '/etc/nixos && git pull && sudo nixos-rebuild switch --flake #$(hostname)'"; }; };