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,38 +10,34 @@
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 = {
bluetooth = {
enable = true;
settings = {
General = {
Experimental = true;
KernelExperimental = true;
};
};
package = (pkgs.bluez.override { withExperimental = true; });
};
cpu.intel.updateMicrocode = lib.mkDefault true; cpu.intel.updateMicrocode = lib.mkDefault true;
enableRedistributableFirmware = true; enableRedistributableFirmware = true;
}; gpgSmartcards.enable = true;
opengl = {
hardware.bluetooth = { enable = true;
settings = { extraPackages = [ pkgs.intel-media-driver ];
General = { driSupport = true;
Experimental = true; };
KernelExperimental = true; sensor.hddtemp = {
}; enable = true;
drives = [ "/dev/disk/by-path/pci-0000:01:00.0-nvme-1" ];
}; };
package = (pkgs.bluez.override { withExperimental = true; });
enable = true;
};
hardware.sensor.hddtemp = {
enable = true;
drives = [ "/dev/disk/by-path/pci-0000:01:00.0-nvme-1" ];
};
boot.loader = {
efi.canTouchEfiVariables = true;
}; };
} }