configuration.nix/hosts/skipper/hardware/default.nix

56 lines
1.3 KiB
Nix
Raw Normal View History

2023-11-04 16:12:45 +05:30
{ lib
, pkgs
, ...
2023-05-18 16:11:26 +05:30
}: {
2024-06-30 23:54:47 +05:30
imports = [ ./filesystem.nix ];
2023-03-15 22:11:59 +05:30
2023-04-04 09:04:29 +05:30
boot = {
2024-06-30 23:54:47 +05:30
consoleLogLevel = 3;
kernelPackages = lib.mkDefault pkgs.linuxPackages_zen;
kernelParams = [ "quiet" ];
kernelModules = [ "kvm-intel" ];
kernel.sysctl = {
"vm.swappiness" = 10;
"vm.dirty_ratio" = 3;
};
2024-06-20 13:51:00 +05:30
initrd = {
2024-06-30 23:54:47 +05:30
availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"rtsx_pci_sdmmc"
];
kernelModules = [ "i915" "dm-snapshot" ];
systemd.enable = true;
2023-04-04 09:04:29 +05:30
};
};
2023-03-15 22:11:59 +05:30
hardware = {
2023-04-07 19:52:41 +05:30
bluetooth = {
enable = true;
settings = {
General = {
Experimental = true;
KernelExperimental = true;
};
};
package = pkgs.bluez.override { enableExperimental = true; };
2023-04-07 19:52:41 +05:30
};
2023-03-15 22:11:59 +05:30
cpu.intel.updateMicrocode = lib.mkDefault true;
enableRedistributableFirmware = true;
2023-04-07 19:52:41 +05:30
gpgSmartcards.enable = true;
graphics = {
2023-04-07 19:52:41 +05:30
enable = true;
2024-06-30 16:36:38 +05:30
enable32Bit = true;
2024-06-22 21:48:08 +05:30
extraPackages = with pkgs; [ intel-media-driver vpl-gpu-rt libvdpau-va-gl ];
2024-06-30 16:36:38 +05:30
extraPackages32 = with pkgs.pkgsi686Linux; [ intel-media-driver libvdpau-va-gl ];
2023-04-07 19:52:41 +05:30
};
sensor.hddtemp = {
enable = true;
2023-11-04 16:12:45 +05:30
drives = [ "/dev/disk/by-path/pci-0000:01:00.0-nvme-1" ];
2023-03-31 22:06:17 +05:30
};
xone.enable = true;
2023-03-15 22:11:59 +05:30
};
2024-06-30 23:54:47 +05:30
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2023-03-15 22:11:59 +05:30
}