feat: add libvirt

This commit is contained in:
Ahurac 2024-10-07 13:30:45 +02:00
parent f4a331abeb
commit 232bb15689

View file

@ -40,6 +40,26 @@
programs.hyprland.enable = true; programs.hyprland.enable = true;
programs.zsh.enable = true; programs.zsh.enable = true;
virtualisation.libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [
(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd
];
};
};
};
systemd.services.libvirtd.wantedBy = lib.mkForce [ ];
systemd.services.libvirt-guests.wantedBy = lib.mkForce [ ];
users.users.ahurac = { users.users.ahurac = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" ]; extraGroups = [ "wheel" "networkmanager" ];