diff --git a/nixos/tests/switch-test.nix b/nixos/tests/switch-test.nix index 18defdfc9d76..545cbe25f167 100644 --- a/nixos/tests/switch-test.nix +++ b/nixos/tests/switch-test.nix @@ -68,9 +68,9 @@ in echo "systemd 0" > $out/init-interface-version ''; - modifiedSystemConf.configuration.systemd.extraConfig = '' - # Hello world! - ''; + modifiedSystemConf.configuration.systemd.settings.Manager = { + DefaultEnvironment = "XXX_SYSTEM=foo"; + }; addedMount.configuration.virtualisation.fileSystems."/test" = { device = "tmpfs";