init: public

This commit is contained in:
2025-04-13 15:09:14 +08:00
parent 5995c2050b
commit 50247d94e8
253 changed files with 12964 additions and 567 deletions

View File

@@ -0,0 +1,28 @@
{ lib, ... }:
let
# T400
gpuIDs = [
"8086:56a0" # A770
"10de:1f82" # 1650
"10de:10fa" # 1650
"10de:1fb2" # T400
];
in
{
boot = {
initrd.kernelModules = [
"vfio_pci"
"vfio"
"vfio_iommu_type1"
];
kernelParams = [
"pcie_acs_override=downstream,multifunction"
"amd_iommu=on"
"vfio-pci.ids=${lib.concatStringsSep "," gpuIDs}"
];
};
virtualisation.spiceUSBRedirection.enable = true;
my.virt.enable = true;
}