diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2017-05-19 21:42:20 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-05-20 20:31:38 +0100 |
commit | 4698012c5275395d2b2579ccb4a4337774b41229 (patch) | |
tree | 92ce9599adbc09a934e7c0fd2d827cf12b6ce908 /nixos/modules/system | |
parent | b2a14ee339fa7d328b9d896731803d57d39ded6b (diff) |
systemd-nspawn: add NotifyRead option
Diffstat (limited to 'nixos/modules/system')
-rw-r--r-- | nixos/modules/system/boot/systemd-nspawn.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/systemd-nspawn.nix b/nixos/modules/system/boot/systemd-nspawn.nix index f765db275e793..788a13c27ca6e 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} |