nixos-functions: Set system.stateVersion
This commit is contained in:
parent
4c5e7bde3e
commit
0329256fd8
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ in lib.optionalAttrs stdenv.hostPlatform.isLinux (
|
|||
system.nixos = dummyVersioning;
|
||||
boot.loader.grub.enable = false;
|
||||
fileSystems."/".device = "/dev/null";
|
||||
system.stateVersion = lib.trivial.release;
|
||||
}).toplevel;
|
||||
|
||||
nixosTest-test = pkgs.nixosTest ({ lib, pkgs, figlet, ... }: {
|
||||
|
@ -31,6 +32,7 @@ in lib.optionalAttrs stdenv.hostPlatform.isLinux (
|
|||
nodes.machine = { pkgs, ... }: {
|
||||
system.nixos = dummyVersioning;
|
||||
environment.systemPackages = [ pkgs.hello figlet ];
|
||||
system.stateVersion = lib.trivial.release;
|
||||
};
|
||||
testScript = ''
|
||||
machine.succeed("hello | figlet >/dev/console")
|
||||
|
|
Loading…
Reference in a new issue