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;
|
system.nixos = dummyVersioning;
|
||||||
boot.loader.grub.enable = false;
|
boot.loader.grub.enable = false;
|
||||||
fileSystems."/".device = "/dev/null";
|
fileSystems."/".device = "/dev/null";
|
||||||
|
system.stateVersion = lib.trivial.release;
|
||||||
}).toplevel;
|
}).toplevel;
|
||||||
|
|
||||||
nixosTest-test = pkgs.nixosTest ({ lib, pkgs, figlet, ... }: {
|
nixosTest-test = pkgs.nixosTest ({ lib, pkgs, figlet, ... }: {
|
||||||
|
@ -31,6 +32,7 @@ in lib.optionalAttrs stdenv.hostPlatform.isLinux (
|
||||||
nodes.machine = { pkgs, ... }: {
|
nodes.machine = { pkgs, ... }: {
|
||||||
system.nixos = dummyVersioning;
|
system.nixos = dummyVersioning;
|
||||||
environment.systemPackages = [ pkgs.hello figlet ];
|
environment.systemPackages = [ pkgs.hello figlet ];
|
||||||
|
system.stateVersion = lib.trivial.release;
|
||||||
};
|
};
|
||||||
testScript = ''
|
testScript = ''
|
||||||
machine.succeed("hello | figlet >/dev/console")
|
machine.succeed("hello | figlet >/dev/console")
|
||||||
|
|
Loading…
Reference in a new issue