configuration.nix/system/hardware.nix

32 lines
581 B
Nix
Raw Normal View History

2023-03-29 21:48:55 +05:30
{ lib
, pkgs
, config
, ...
2023-03-25 22:10:09 +05:30
}: {
2023-03-29 21:48:55 +05:30
imports = [ ./disk.nix ./kernel.nix ];
2023-03-15 22:11:59 +05:30
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.opengl = {
enable = true;
2023-03-29 21:48:55 +05:30
extraPackages = [ pkgs.intel-media-driver ];
2023-03-15 22:11:59 +05:30
driSupport = true;
};
hardware = {
cpu.intel.updateMicrocode = lib.mkDefault true;
enableRedistributableFirmware = true;
};
hardware.bluetooth.enable = true;
hardware.sensor.hddtemp = {
enable = true;
2023-03-29 21:48:55 +05:30
drives = [ "/dev/disk/by-path/pci-0000:01:00.0-nvme-1" ];
2023-03-15 22:11:59 +05:30
};
boot.loader = {
efi.canTouchEfiVariables = true;
};
}