summary refs log tree commit diff
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
parentTry passing lib and nixpkgs to secrets (diff)
downloadSpacebar-Open-Infrastructure-5531ad07ae13df3d5b418c36d32fe7994efa8c9a.tar.xz
Make infra boot log depend on network target
-rwxr-xr-xflake.nix2
-rw-r--r--modules/infra-logs.nix1
2 files changed, 2 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix

index 247af77..7f6a3d0 100755 --- a/flake.nix +++ b/flake.nix
@@ -25,7 +25,7 @@ ]; specialArgs = { inherit home-manager; - secrets = secrets { inherit (nixpkgs) lib; }; + secrets = import secrets { inherit (nixpkgs) lib; }; }; }; Spacebar-synapse = nixpkgs.lib.nixosSystem { 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}