about summary refs log tree commit diff
path: root/nixpkgs/nixos/tests/non-switchable-system.nix
blob: 54bede75453ba5f95055871e8bec9572b37d6601 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ 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")
  '';
}