configuration.nix/system/hardware/default.nix

53 lines
1,023 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-04-04 09:04:29 +05:30
imports = [ ./kernel.nix ./filesystem.nix ];
2023-03-15 22:11:59 +05:30
2023-04-04 09:04:29 +05:30
boot = {
resumeDevice = "/dev/vg0/swap";
initrd.luks.devices = {
luks0 = {
allowDiscards = true;
bypassWorkqueues = true;
device = "/dev/disk/by-partlabel/CRYPT";
preLVM = true;
};
};
};
swapDevices = [{ device = "/dev/vg0/swap"; }];
2023-03-15 22:11:59 +05:30
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;
};
2023-03-31 22:06:17 +05:30
hardware.bluetooth = {
settings = {
General = {
Experimental = true;
KernelExperimental = true;
};
};
package = (pkgs.bluez.override { withExperimental = true; });
enable = true;
};
2023-03-15 22:11:59 +05:30
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;
};
}