From 6aa5640c1bd2a53cb25db1a14dc4187c52f21d19 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 3 Apr 2023 18:47:02 +0200 Subject: Clarify boot message --- build.sh | 4 ++++ modules/infra-logs.nix | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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"; -- cgit 1.4.1