Skip to content

Commit 4888aac

Browse files
committed
enable virtual manager and quickemu
1 parent 52eb1a5 commit 4888aac

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
nixos/home/result
22
result
3+
*.qcow2

outputs/os.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ in
3333
../system/modules/globalprotectvpn.nix
3434
../system/machine/thinkpad-x1
3535
../system/configuration.nix
36+
../system/virtualisation.nix
3637
extraSystemConfig
3738
];
3839
};

system/virtualisation.nix

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
{ ... }:
1+
{ pkgs, ... }:
22

33
# docs: https://nixos.wiki/wiki/NixOS:nixos-rebuild_build-vm
44
{
5+
programs.virt-manager.enable = true;
6+
7+
environment.systemPackages = with pkgs; [ quickemu ];
8+
59
users = {
610
groups.nixosvmtest = { };
11+
groups.libvirtd.members = [ "gvolpe" ];
712

813
users.vmtest = {
914
isSystemUser = true;
@@ -12,7 +17,13 @@
1217
};
1318
};
1419

15-
virtualisation.vmVariant = {
20+
virtualisation = {
21+
# virtual manager for vms
22+
libvirtd.enable = true;
23+
spiceUSBRedirection.enable = true;
24+
};
25+
26+
vmVariant = {
1627
virtualisation = {
1728
memorySize = 4096;
1829
cores = 4;

0 commit comments

Comments
 (0)