This commit is contained in:
Adithya 2023-04-07 19:52:41 +05:30
parent 9ebb6123e3
commit 8dcf43e4e0
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -1,12 +1,7 @@
{ lib { lib, pkgs, config, ... }: {
, pkgs
, config
, ...
}: {
imports = [ ./kernel.nix ./filesystem.nix ]; imports = [ ./kernel.nix ./filesystem.nix ];
boot = { boot = {
resumeDevice = "/dev/vg0/swap";
initrd.luks.devices = { initrd.luks.devices = {
luks0 = { luks0 = {
allowDiscards = true; allowDiscards = true;
@ -15,22 +10,15 @@
preLVM = true; preLVM = true;
}; };
}; };
loader.efi.canTouchEfiVariables = true;
resumeDevice = "/dev/vg0/swap";
}; };
swapDevices = [{ device = "/dev/vg0/swap"; }]; swapDevices = [{ device = "/dev/vg0/swap"; }];
hardware.opengl = {
enable = true;
extraPackages = [ pkgs.intel-media-driver ];
driSupport = true;
};
hardware = { hardware = {
cpu.intel.updateMicrocode = lib.mkDefault true; bluetooth = {
enableRedistributableFirmware = true; enable = true;
};
hardware.bluetooth = {
settings = { settings = {
General = { General = {
Experimental = true; Experimental = true;
@ -38,15 +26,18 @@
}; };
}; };
package = (pkgs.bluez.override { withExperimental = true; }); package = (pkgs.bluez.override { withExperimental = true; });
enable = true;
}; };
cpu.intel.updateMicrocode = lib.mkDefault true;
hardware.sensor.hddtemp = { enableRedistributableFirmware = true;
gpgSmartcards.enable = true;
opengl = {
enable = true;
extraPackages = [ pkgs.intel-media-driver ];
driSupport = true;
};
sensor.hddtemp = {
enable = true; enable = true;
drives = [ "/dev/disk/by-path/pci-0000:01:00.0-nvme-1" ]; drives = [ "/dev/disk/by-path/pci-0000:01:00.0-nvme-1" ];
}; };
boot.loader = {
efi.canTouchEfiVariables = true;
}; };
} }