1
Fork 0
nixos-system-config/modules/system/virtualisation.nix

25 lines
509 B
Nix
Raw Normal View History

2024-06-28 00:52:58 +02:00
{ ... }:
2024-06-27 20:59:55 +02:00
{
2024-06-28 00:52:58 +02:00
virtualisation.libvirtd.enable = true;
2024-06-27 20:59:55 +02:00
programs.virt-manager.enable = true;
users.users.hu.extraGroups = [ "libvirtd" ];
2025-01-14 00:26:58 +01:00
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"];
};
};
};
2024-06-27 20:59:55 +02:00
}