virtualization/libvirtd: init

This commit is contained in:
Lu Wang 2024-12-03 21:16:59 +08:00
parent 913786f3d2
commit ead436be82
Signed by: rebmit
SSH key fingerprint: SHA256:3px8QV1zEerIrEWHaqtH5rR9kjetyRST5EipOPrd+bU
3 changed files with 15 additions and 0 deletions

View file

@ -11,6 +11,8 @@
seahorse seahorse
tdesktop tdesktop
thunderbird thunderbird
virt-manager
virt-viewer
zotero-beta zotero-beta
# keep-sorted end # keep-sorted end
]; ];

View file

@ -24,6 +24,7 @@ in
[ [
wheel.name wheel.name
] ]
++ groupNameIfPresent "libvirtd"
++ groupNameIfPresent "pipewire"; ++ groupNameIfPresent "pipewire";
openssh.authorizedKeys.keyFiles = config.users.users.root.openssh.authorizedKeys.keyFiles; openssh.authorizedKeys.keyFiles = config.users.users.root.openssh.authorizedKeys.keyFiles;
}; };

View file

@ -0,0 +1,12 @@
{ ... }:
{
virtualisation.libvirtd = {
enable = true;
qemu = {
runAsRoot = false;
swtpm.enable = true;
};
};
environment.globalPersistence.user.directories = [ ".config/libvirt" ];
}