nixos/corerad: set systemd unit Type=notify

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2020-06-24 22:09:20 -04:00
parent 16a7ae0d64
commit 09f0d65317
No known key found for this signature in database
GPG Key ID: 77BFE531397EDE94

View File

@ -77,6 +77,8 @@ in {
AmbientCapabilities = "CAP_NET_ADMIN CAP_NET_RAW";
NoNewPrivileges = true;
DynamicUser = true;
Type = "notify";
NotifyAccess = "main";
ExecStart = "${getBin cfg.package}/bin/corerad -c=${cfg.configFile}";
Restart = "on-failure";
};