summary refs log tree commit diff
path: root/modules/infra-logs.nix
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-04-03 18:37:04 +0200
committerRory& <root@rory.gay>2024-06-05 15:52:38 +0200
commit5531ad07ae13df3d5b418c36d32fe7994efa8c9a (patch)
tree14cfef0d270defcb7501cb5720f090dbdc546f14 /modules/infra-logs.nix
parentTry passing lib and nixpkgs to secrets (diff)
downloadSpacebar-Open-Infrastructure-5531ad07ae13df3d5b418c36d32fe7994efa8c9a.tar.xz
Make infra boot log depend on network target
Diffstat (limited to 'modules/infra-logs.nix')
-rw-r--r--modules/infra-logs.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/infra-logs.nix b/modules/infra-logs.nix
index 0ca78a0..49afd96 100644
--- a/modules/infra-logs.nix
+++ b/modules/infra-logs.nix
@@ -3,6 +3,7 @@
   systemd.services = {
     "boot" = {
         wantedBy = [ "multi-user.target" ];
+        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}