nixconfig/systems/valinor/hardware.nix

32 lines
954 B
Nix
Raw Permalink Normal View History

2024-04-14 07:57:07 +02:00
{ config, lib, pkgs, modulesPath, ... }: {
2023-11-04 02:28:27 +01:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
2023-11-17 03:29:35 +01:00
boot.initrd.kernelModules = [ ];
2023-11-04 02:28:27 +01:00
boot.kernelModules = [ "v4l2loopback" "kvm-amd" ];
2023-11-16 23:06:28 +01:00
#boot.kernelPackages = pkgs.linuxPackages_latest;
2023-11-04 02:28:27 +01:00
boot.extraModulePackages = with config.boot.kernelPackages;
[ v4l2loopback.out ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/e9713f83-ee3a-4fb1-806f-594c3bab7006";
fsType = "ext4";
};
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/F344-72E2";
fsType = "vfat";
};
swapDevices =
[{ device = "/dev/disk/by-uuid/8bbeae2f-9431-4849-9b42-9f2655da596e"; }];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode =
2023-11-16 23:06:28 +01:00
lib.mkDefault config.hardware.enableAllFirmware;
2023-11-04 02:28:27 +01:00
}