mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
b3c1d8c9ae
This flag allows the user to optionally exclude switch-to-confguration.pl from toplevel. This is interesting for appliance images where you don't want to re-build the system. This flag is called `rebuildable` because the standard interface to do this is `nixos-rebuild` which will not work anymore with this change.
16 lines
276 B
Nix
16 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")
|
|
'';
|
|
}
|