2023-04-07 19:52:41 +05:30
|
|
|
{ lib, pkgs, config, ... }: {
|
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 = {
|
|
|
|
initrd.luks.devices = {
|
|
|
|
luks0 = {
|
|
|
|
allowDiscards = true;
|
|
|
|
bypassWorkqueues = true;
|
|
|
|
device = "/dev/disk/by-partlabel/CRYPT";
|
|
|
|
preLVM = true;
|
|
|
|
};
|
|
|
|
};
|
2023-04-07 19:52:41 +05:30
|
|
|
loader.efi.canTouchEfiVariables = true;
|
|
|
|
resumeDevice = "/dev/vg0/swap";
|
2023-04-26 22:57:32 +05:30
|
|
|
supportedFilesystems = [ "btrfs" ];
|
2023-04-04 09:04:29 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [{ device = "/dev/vg0/swap"; }];
|
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 { withExperimental = true; });
|
|
|
|
};
|
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;
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
extraPackages = [ pkgs.intel-media-driver ];
|
|
|
|
driSupport = true;
|
2023-05-16 00:19:30 +05:30
|
|
|
driSupport32Bit = true;
|
2023-04-07 19:52:41 +05:30
|
|
|
};
|
|
|
|
sensor.hddtemp = {
|
|
|
|
enable = true;
|
|
|
|
drives = [ "/dev/disk/by-path/pci-0000:01:00.0-nvme-1" ];
|
2023-03-31 22:06:17 +05:30
|
|
|
};
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
|
|
|
}
|