summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatt Layher <mdlayher@gmail.com>2020-06-24 22:09:20 -0400
committerMatt Layher <mdlayher@gmail.com>2020-06-24 22:09:20 -0400
commit09f0d65317f1789b2f74eda1891427efccd90e04 (patch)
treef9ea0a7c09d38c067f181f2d3238d34ffacc5f66
parent16a7ae0d64d1f622ac127128fe2b8e921caa823d (diff)
downloadnixpkgs-09f0d65317f1789b2f74eda1891427efccd90e04.tar
nixpkgs-09f0d65317f1789b2f74eda1891427efccd90e04.tar.gz
nixpkgs-09f0d65317f1789b2f74eda1891427efccd90e04.tar.bz2
nixpkgs-09f0d65317f1789b2f74eda1891427efccd90e04.tar.lz
nixpkgs-09f0d65317f1789b2f74eda1891427efccd90e04.tar.xz
nixpkgs-09f0d65317f1789b2f74eda1891427efccd90e04.tar.zst
nixpkgs-09f0d65317f1789b2f74eda1891427efccd90e04.zip
nixos/corerad: set systemd unit Type=notify
Signed-off-by: Matt Layher <mdlayher@gmail.com>
-rw-r--r--nixos/modules/services/networking/corerad.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/corerad.nix b/nixos/modules/services/networking/corerad.nix
index 5d73c0a0d77..1c414c53a98 100644
--- a/nixos/modules/services/networking/corerad.nix
+++ b/nixos/modules/services/networking/corerad.nix
@@ -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";
       };