Switch to shell command and add git pull

This commit is contained in:
2025-12-07 19:49:33 -08:00
parent 40b6bde6a4
commit 561c632289

View File

@@ -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)'";
};
};