From 5531ad07ae13df3d5b418c36d32fe7994efa8c9a Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Mon, 3 Apr 2023 18:37:04 +0200 Subject: Make infra boot log depend on network target --- flake.nix | 2 +- modules/infra-logs.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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} -- cgit 1.4.1