summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-04-03 18:47:02 +0200
committerRory& <root@rory.gay>2024-06-05 15:52:38 +0200
commit6aa5640c1bd2a53cb25db1a14dc4187c52f21d19 (patch)
tree8fc3f89602edc736be47e87b42e24e96067d944c
parentMake infra boot log depend on network target (diff)
downloadSpacebar-Open-Infrastructure-6aa5640c1bd2a53cb25db1a14dc4187c52f21d19.tar.xz
Clarify boot message
-rwxr-xr-xbuild.sh4
-rw-r--r--modules/infra-logs.nix2
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";