nixos/hosts/kim/hardware-configuration.nix

41 lines
1 KiB
Nix
Raw Normal View History

2024-11-20 17:09:06 -05:00
{ config, lib, pkgs, modulesPath, ... }: {
2024-05-21 11:31:04 -04:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2024-05-21 11:34:41 -04:00
2024-11-20 17:09:06 -05:00
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
2024-11-20 17:09:06 -05:00
# TODO: I use wayland, do I need this?
services.xserver.videoDrivers = [ "amdgpu" ];
2024-11-20 17:09:06 -05:00
hardware = {
graphics = {
extraPackages = with pkgs; [ amdvlk ];
};
2024-11-20 17:09:06 -05:00
graphics = {
enable = true;
};
2024-11-20 17:09:06 -05:00
enableRedistributableFirmware = true;
};
powerManagement.cpuFreqGovernor = "performance";
fileSystems."/" = {
device = "/dev/disk/by-uuid/ba4362a3-3a0b-4227-b460-a5a9302f5966";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/DB88-8E65";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
2024-05-21 11:34:41 -04:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = true;
}