summary refs log tree commit diff
path: root/modules/infra-logs.nix
blob: 0ca78a0dd2fac1bd38db55a54bb72417589fa287 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ config, pkgs, lib, secrets, ... }:
{
  systemd.services = {
    "boot" = {
        wantedBy = [ "multi-user.target" ];
        serviceConfig = {
            ExecStart = ''
              ${pkgs.curl}/bin/curl -H "Content-Type: application/json" -d '{"username": "${config.networking.hostName}", "content": "System booted."}' ${secrets.webhooks.discord.deploy}
              '';
            #Restart = "never";
            User = "root";
        };
    };
  };
}