From 7d731f3bcab13192bde0cd43a68a3a96d9e17a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6gler?= Date: Sun, 4 Sep 2022 11:34:37 +0200 Subject: [PATCH] nixos/nspawn: Remove not compliant options The attribute set sharedOptions pulls in not compliant unit options: - requiredBy - wantedBy - aliases see man5 systemd.nspawn --- nixos/modules/system/boot/systemd/nspawn.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd/nspawn.nix b/nixos/modules/system/boot/systemd/nspawn.nix index 0d06fb3c0322..59d755b3a0b0 100644 --- a/nixos/modules/system/boot/systemd/nspawn.nix +++ b/nixos/modules/system/boot/systemd/nspawn.nix @@ -45,7 +45,9 @@ let ]; instanceOptions = { - options = sharedOptions // { + options = + (getAttrs [ "enable" ] sharedOptions) + // { execConfig = mkOption { default = {}; example = { Parameters = "/bin/sh"; };