depot/third_party/nixpkgs/nixos/tests/non-switchable-system.nix

15 lines
276 B
Nix

{ lib, ... }:
{
name = "non-switchable-system";
meta.maintainers = with lib.maintainers; [ nikstur ];
nodes.machine = {
system.switch.enable = false;
};
testScript = ''
machine.succeed("test ! -e /run/current-system/bin/switch-to-configuration")
'';
}