Skip to content

Commit 86f44b0

Browse files
authoredMar 19, 2025
nixos/nixos-containers: user options take precedence over module ones (#388409)
2 parents ce8b017 + c2d4e8f commit 86f44b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nixos/modules/virtualisation/nixos-containers.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ let
178178
exec ${config.systemd.package}/bin/systemd-nspawn \
179179
--keep-unit \
180180
-M "$INSTANCE" -D "$root" "''${extraFlags[@]}" \
181-
$EXTRA_NSPAWN_FLAGS \
182181
--notify-ready=yes \
183182
--kill-signal=SIGRTMIN+3 \
184183
--bind-ro=/nix/store:/nix/store$NIX_BIND_OPT \
@@ -203,6 +202,7 @@ let
203202
${optionalString (cfg.tmpfs != null && cfg.tmpfs != [])
204203
''--tmpfs=${concatStringsSep " --tmpfs=" cfg.tmpfs}''
205204
} \
205+
$EXTRA_NSPAWN_FLAGS \
206206
${containerInit cfg} "''${SYSTEM_PATH:-/nix/var/nix/profiles/system}/init"
207207
'';
208208

0 commit comments

Comments
 (0)
Failed to load comments.