1
Fork 0
nixos-system-config/modules/system/virtualisation.nix
2025-01-14 00:26:58 +01:00

24 lines
509 B
Nix

{ ... }:
{
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
users.users.hu.extraGroups = [ "libvirtd" ];
environment.persistence."/nix/persist".directories = [
"/var/lib/libvirt"
"/var/log/libvirt"
"/var/cache/libvirt"
"/var/log/swtpm/libvirt"
];
home-manager.users.hu = {
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
};
}