Files
nixpkgs/nixos/tests/simple-container.nix
Nina Fromm 0dc4ca4c71 nixos/tests: Load root profile in nspawn tests
This is currently a hacky workarround, but bettern than nothing until we come up
with a better solution.
2026-06-24 09:36:11 +02:00

17 lines
263 B
Nix

{
name = "simple-container";
containers = {
machine = { pkgs, ... }: {
users.users.root.packages = [ pkgs.hello ];
};
noprofile = { };
};
testScript = ''
start_all()
machine.succeed("hello")
noprofile.fail("hello")
'';
}