File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ nixpkgs.lib.nixosSystem {
22
22
} ;
23
23
24
24
networking . hostName = "graphical-microvm" ;
25
- system . stateVersion = config . system . nixos . version ;
25
+ system . stateVersion = lib . trivial . release ;
26
26
nixpkgs . overlays = [ self . overlay ] ;
27
27
28
28
services . getty . autologinUser = "user" ;
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ nixpkgs.lib.nixosSystem {
35
35
36
36
in {
37
37
networking . hostName = "microvms-host" ;
38
- system . stateVersion = config . system . nixos . version ;
38
+ system . stateVersion = lib . trivial . release ;
39
39
users . users . root . password = "" ;
40
40
users . motd = ''
41
41
Once nested MicroVMs have booted you can look up DHCP leases:
@@ -66,7 +66,7 @@ nixpkgs.lib.nixosSystem {
66
66
# Nested MicroVMs (a *host* option)
67
67
microvm . vms = builtins . mapAttrs ( hypervisor : mac : {
68
68
config = {
69
- system . stateVersion = config . system . nixos . version ;
69
+ system . stateVersion = lib . trivial . release ;
70
70
networking . hostName = "${ hypervisor } -microvm" ;
71
71
72
72
microvm = {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ nixpkgs.lib.nixosSystem {
28
28
} ;
29
29
30
30
networking . hostName = "qemu-vnc" ;
31
- system . stateVersion = config . system . nixos . version ;
31
+ system . stateVersion = lib . trivial . release ;
32
32
33
33
microvm . qemu . extraArgs = [
34
34
"-vnc" ":0"
Original file line number Diff line number Diff line change 181
181
modules = [
182
182
self . nixosModules . microvm
183
183
( { config , lib , ... } : {
184
- system . stateVersion = config . system . nixos . version ;
184
+ system . stateVersion = lib . trivial . release ;
185
185
186
186
networking . hostName = "${ hypervisor } -microvm" ;
187
187
services . getty . autologinUser = "root" ;
You can’t perform that action at this time.
0 commit comments