virgil/vfio

This commit is contained in:
tulg 2025-10-23 19:18:55 +03:00
parent f58d2f9232
commit dbad0a1263
3 changed files with 11 additions and 8 deletions

View file

@ -29,12 +29,7 @@
listen_addresses = ["127.0.0.1:53" "[::1]:53"];
};
};
virtualisation = {
libvirtd = {
enable = true;
qemuOvmf = true;
};
};
services.zapret = {
enable = true;
params = [
@ -65,9 +60,16 @@
users.users.tulg = {
isNormalUser = true;
description = "Tulga";
extraGroups = ["networkmanager" "wheel"];
extraGroups = ["networkmanager" "wheel" "libvirtd"];
packages = with pkgs; [];
};
programs.virt-manager.enable = true;
virtualisation.libvirtd = {
enable = true;
qemuRunAsRoot = false;
onBoot = "ignore";
onShutdown = "shutdown";
};
# Allow unfree packages
nixpkgs.config.allowUnfree = true;