summary refs log tree commit diff
diff options
context:
space:
mode:
-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}