diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 3dc661d..1c76595 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -8,18 +8,18 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "uas" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; fileSystems."/" = - { device = "/dev/disk/by-uuid/c67796b3-d502-47db-8d0e-48f30bc91041"; + { device = "/dev/disk/by-uuid/d53e0c4b-3021-4fe4-b506-21c929053d1f"; fsType = "ext4"; }; fileSystems."/boot" = - { device = "/dev/disk/by-uuid/AD02-10EA"; + { device = "/dev/disk/by-uuid/E6FC-4341"; fsType = "vfat"; }; @@ -30,8 +30,7 @@ # still possible to use this option, but it's recommended to use it in conjunction # with explicit per-interface declarations with `networking.interfaces..useDHCP`. networking.useDHCP = lib.mkDefault true; - # networking.interfaces.eno1.useDHCP = lib.mkDefault true; - # networking.interfaces.wlo1.useDHCP = lib.mkDefault true; + # networking.interfaces.enp10s0.useDHCP = lib.mkDefault true; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; diff --git a/modules/vfio.nix b/modules/vfio.nix index 7a5fe50..0249f01 100644 --- a/modules/vfio.nix +++ b/modules/vfio.nix @@ -12,10 +12,11 @@ qemu = { runAsRoot = true; ovmf.enable = true; -# verbatimConfig = '' -# user = gerg -# namespaces = [] -# ''; + verbatimConfig = '' + user = "gerg" + group = "kvm" + namespaces = [] + ''; }; }; };