From 4698012c5275395d2b2579ccb4a4337774b41229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 19 May 2017 21:42:20 +0100 Subject: [PATCH] systemd-nspawn: add NotifyRead option --- nixos/modules/system/boot/systemd-nspawn.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/system/boot/systemd-nspawn.nix b/nixos/modules/system/boot/systemd-nspawn.nix index f765db275e79..788a13c27ca6 100644 --- a/nixos/modules/system/boot/systemd-nspawn.nix +++ b/nixos/modules/system/boot/systemd-nspawn.nix @@ -14,11 +14,12 @@ let (assertOnlyFields [ "Boot" "ProcessTwo" "Parameters" "Environment" "User" "WorkingDirectory" "Capability" "DropCapability" "KillSignal" "Personality" "MachineId" - "PrivateUsers" + "PrivateUsers" "NotifyReady" ]) (assertValueOneOf "Boot" boolValues) (assertValueOneOf "ProcessTwo" boolValues) (assertValueOneOf "PrivateUsers" (boolValues ++ [ "pick" ])) + (assertValueOneOf "NotifyReady") ]; checkFiles = checkUnitConfig "Files" [ @@ -82,7 +83,7 @@ let }; - instanceToUnit = name: def: + instanceToUnit = name: def: { text = '' [Exec] ${attrsToSection def.execConfig}