blob: fae739a6afcbb550170038c1bb50a83c70e22c9f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{ config, pkgs, lib, secrets, ... }:
{
systemd.services = {
"boot" = {
wantedBy = [ "multi-user.target" ];
after = [ "resolvconf.target" ];
serviceConfig = {
ExecStart = ''
${pkgs.curl}/bin/curl -H 'Content-Type: application/json' -d '{"username": "${config.networking.hostName}", "content": "System booted or rebuilt."}' ${secrets.webhooks.discord.deploy}
'';
#Restart = "never";
User = "root";
};
};
};
}
|