cc3f2432d0
Don't worry, it's is true by default. But I think this is important to have because NixOS indeed shouldn't need Nix at run time when the installation is not being modified, and now we can verify that. NixOS images that cannot "self-modify" are a legitamate use-case that this supports more minimally. One should be able to e.g. do a sshfs mount and use `nixos-install` to modify them remotely, or just discard them and build fresh ones if they are run VMs or something. The next step would be to make generations optional, allowing just baking `/etc` and friends rather than using activation scripts. But that's more involved so I'm leaving it out.
24 lines
413 B
Nix
24 lines
413 B
Nix
import ./make-test-python.nix ({ lib, ... }: {
|
|
name = "without-nix";
|
|
meta = with lib.maintainers; {
|
|
maintainers = [ ericson2314 ];
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
nix = throw "don't want to use this";
|
|
})
|
|
];
|
|
|
|
nodes.machine = { ... }: {
|
|
nix.enable = false;
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
machine.succeed("which which")
|
|
machine.fail("which nix")
|
|
'';
|
|
})
|