dotfiles/machines/futomaki/hardware.nix

70 lines
1.8 KiB
Nix
Raw Permalink Normal View History

{
config,
lib,
pkgs,
modulesPath,
...
2024-05-07 18:20:52 +02:00
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
2024-05-07 18:20:52 +02:00
initrd.availableKernelModules = [
"nvme"
"xhci_pci"
"ahci"
"usbhid"
"sd_mod"
];
initrd.kernelModules = [ "dm-snapshot" ];
2023-08-25 23:45:22 +02:00
kernelPackages = pkgs.linuxPackages_latest;
2024-05-07 18:20:52 +02:00
kernelModules = [
"kvm-amd"
"v4l2loopback"
];
kernelParams = [
"quiet"
"splash"
];
};
# Intel Arc A770
environment.sessionVariables.LIBVA_DRIVER_NAME = "iHD";
2024-05-07 18:20:52 +02:00
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
2024-07-28 18:09:11 +02:00
hardware.graphics = {
enable = true;
2024-07-28 18:09:11 +02:00
enable32Bit = true;
extraPackages = with pkgs; [
2023-06-08 22:55:45 +02:00
intel-compute-runtime
intel-media-driver
2023-06-08 22:55:45 +02:00
libvdpau-va-gl
vaapiIntel
vaapiVdpau
];
};
hardware.bluetooth.enable = true;
fileSystems."/" = {
device = "/dev/disk/by-uuid/018963d2-463f-451d-a54c-dc6f29f24daa";
fsType = "ext4";
};
boot.initrd.luks.devices."luks-b8839f86-af3a-4cb7-a906-108ece087aa0".device = "/dev/disk/by-uuid/b8839f86-af3a-4cb7-a906-108ece087aa0";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/1D0D-B170";
fsType = "vfat";
};
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp37s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}