virgil/vfio
This commit is contained in:
parent
f58d2f9232
commit
dbad0a1263
3 changed files with 11 additions and 8 deletions
|
|
@ -29,12 +29,7 @@
|
||||||
listen_addresses = ["127.0.0.1:53" "[::1]:53"];
|
listen_addresses = ["127.0.0.1:53" "[::1]:53"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
virtualisation = {
|
|
||||||
libvirtd = {
|
|
||||||
enable = true;
|
|
||||||
qemuOvmf = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.zapret = {
|
services.zapret = {
|
||||||
enable = true;
|
enable = true;
|
||||||
params = [
|
params = [
|
||||||
|
|
@ -65,9 +60,16 @@
|
||||||
users.users.tulg = {
|
users.users.tulg = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Tulga";
|
description = "Tulga";
|
||||||
extraGroups = ["networkmanager" "wheel"];
|
extraGroups = ["networkmanager" "wheel" "libvirtd"];
|
||||||
packages = with pkgs; [];
|
packages = with pkgs; [];
|
||||||
};
|
};
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
|
virtualisation.libvirtd = {
|
||||||
|
enable = true;
|
||||||
|
qemuRunAsRoot = false;
|
||||||
|
onBoot = "ignore";
|
||||||
|
onShutdown = "shutdown";
|
||||||
|
};
|
||||||
|
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
boot.kernelparams = ["amd_iommu=on"];
|
boot.kernelParams = ["amd_iommu=on"];
|
||||||
boot.blacklistedKernelModules = ["nvidia" "nouveau"];
|
boot.blacklistedKernelModules = ["nvidia" "nouveau"];
|
||||||
boot.kernelModules = ["vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio"];
|
boot.kernelModules = ["vfio_virqfd" "vfio_pci" "vfio_iommu_type1" "vfio"];
|
||||||
boot.extraModprobeConfig = "options vfio-pci ids=10de:2705,10de:22bb";
|
boot.extraModprobeConfig = "options vfio-pci ids=10de:2705,10de:22bb";
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ in {
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
lf
|
lf
|
||||||
|
inxi
|
||||||
pistol
|
pistol
|
||||||
waybar
|
waybar
|
||||||
wofi
|
wofi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue