diff options
-rwxr-xr-x | build.sh | 4 | ||||
-rw-r--r-- | modules/infra-logs.nix | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/build.sh b/build.sh index 901d857..da5872f 100755 --- a/build.sh +++ b/build.sh @@ -15,8 +15,12 @@ if [ "$1" = "/" ]; then else nixos-generate-config --show-hardware-config --root "${1}" > hardware-configuration.nix git add -f hardware-configuration.nix + if [ -f "flake.lock" ]; then + git add -f flake.lock + fi nixos-install --root "${1}" --flake ".#${2}" git rm --cached hardware-configuration.nix + git rm --cached flake.lock cp . "${1}/Spacebar-Open-Architecture" -r exit fi diff --git a/modules/infra-logs.nix b/modules/infra-logs.nix index 49afd96..68500eb 100644 --- a/modules/infra-logs.nix +++ b/modules/infra-logs.nix @@ -6,7 +6,7 @@ after = [ "network.target" ]; serviceConfig = { ExecStart = '' - ${pkgs.curl}/bin/curl -H "Content-Type: application/json" -d '{"username": "${config.networking.hostName}", "content": "System booted."}' ${secrets.webhooks.discord.deploy} + ${pkgs.curl}/bin/curl -H "Content-Type: application/json" -d '{"username": "${config.networking.hostName}", "content": "System booted or rebuilt."}' ${secrets.webhooks.discord.deploy} ''; #Restart = "never"; User = "root"; |