File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1
1
nixos /home /result
2
2
result
3
+ * .qcow2
Original file line number Diff line number Diff line change 33
33
../system/modules/globalprotectvpn.nix
34
34
../system/machine/thinkpad-x1
35
35
../system/configuration.nix
36
+ ../system/virtualisation.nix
36
37
extraSystemConfig
37
38
] ;
38
39
} ;
Original file line number Diff line number Diff line change 1
- { ... } :
1
+ { pkgs , ... } :
2
2
3
3
# docs: https://nixos.wiki/wiki/NixOS:nixos-rebuild_build-vm
4
4
{
5
+ programs . virt-manager . enable = true ;
6
+
7
+ environment . systemPackages = with pkgs ; [ quickemu ] ;
8
+
5
9
users = {
6
10
groups . nixosvmtest = { } ;
11
+ groups . libvirtd . members = [ "gvolpe" ] ;
7
12
8
13
users . vmtest = {
9
14
isSystemUser = true ;
12
17
} ;
13
18
} ;
14
19
15
- virtualisation . vmVariant = {
20
+ virtualisation = {
21
+ # virtual manager for vms
22
+ libvirtd . enable = true ;
23
+ spiceUSBRedirection . enable = true ;
24
+ } ;
25
+
26
+ vmVariant = {
16
27
virtualisation = {
17
28
memorySize = 4096 ;
18
29
cores = 4 ;
You can’t perform that action at this time.
0 commit comments