From 1cd71881f26f6b52b921933a4f09ffdf68db0716 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Wed, 14 Feb 2024 17:52:13 +0100 Subject: [PATCH] nixos/systemd: Support notify-reload service Type Support for this was added in systemd 253: https://github.com/systemd/systemd/releases/tag/v253 --- nixos/lib/systemd-unit-options.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/lib/systemd-unit-options.nix b/nixos/lib/systemd-unit-options.nix index df05d165d9e8..bc7880da9fe0 100644 --- a/nixos/lib/systemd-unit-options.nix +++ b/nixos/lib/systemd-unit-options.nix @@ -6,7 +6,7 @@ with lib; let checkService = checkUnitConfig "Service" [ (assertValueOneOf "Type" [ - "exec" "simple" "forking" "oneshot" "dbus" "notify" "idle" + "exec" "simple" "forking" "oneshot" "dbus" "notify" "notify-reload" "idle" ]) (assertValueOneOf "Restart" [ "no" "on-success" "on-failure" "on-abnormal" "on-abort" "always"