1
1
Fork 0

vm: rename option init to blacklist

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2025-01-04 12:14:35 -06:00
parent 54817e4d70
commit 52c55b97c4
Signed by: Myned
GPG key ID: C7224454F7881A34
2 changed files with 3 additions and 3 deletions

View file

@ -30,10 +30,10 @@
vm.passthrough = {
enable = true;
blacklist = true;
driver = "amdgpu";
guest = "myndows";
id = "1002:73df";
init = true;
intel = true;
node = "pci_0000_03_00_0";
};

View file

@ -17,10 +17,10 @@ in {
passthrough = {
enable = mkOption {default = false;};
blacklist = mkOption {default = false;};
driver = mkOption {default = null;}; #?? lspci -k
guest = mkOption {default = null;}; #?? virsh list --all
id = mkOption {default = null;}; #?? lspci -nn
init = mkOption {default = false;};
intel = mkOption {default = false;};
node = mkOption {default = null;}; #?? virsh nodedev-list
};
@ -156,7 +156,7 @@ in {
boot = mkIf cfg.passthrough.enable {
# https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Isolating_the_GPU
blacklistedKernelModules = mkIf cfg.passthrough.init [cfg.passthrough.driver];
blacklistedKernelModules = mkIf cfg.passthrough.blacklist [cfg.passthrough.driver];
# https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF#Enabling_IOMMU
kernelParams = mkIf cfg.passthrough.intel ["intel_iommu=on"];