2
2
mirror of https://git.feal.no/felixalb/nixos-config.git synced 2024-12-23 04:27:31 +01:00
nixos-config/hosts/defiant/libvirt.nix

19 lines
508 B
Nix
Raw Normal View History

2024-01-08 00:49:16 +01:00
{ config, pkgs, lib, ... }:
{
virtualisation.libvirtd.enable = true;
programs.dconf.enable = true;
boot.extraModprobeConfig = "options kvm_amd nested=1";
boot.kernelModules = [ "kvm-amd" "kvm-intel" ];
users.users.felixalb.extraGroups = [ "libvirtd" ];
fileSystems."/var/lib/libvirt/images" = {
device = "/tank/iso";
options = [ "bind" ];
};
# On a gui-enabled machine, connect with:
# $ virt-manager --connect "qemu+ssh://defiant/system?socket=/var/run/libvirt/libvirt-sock"
}