2023-05-18 16:11:26 +05:30
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
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-05-18 16:11:26 +05:30
|
|
|
supportedFilesystems = ["btrfs"];
|
2023-04-04 09:04:29 +05:30
|
|
|
};
|
|
|
|
|
2023-05-18 16:11:26 +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;
|
|
|
|
};
|
|
|
|
};
|
2023-05-18 16:11:26 +05:30
|
|
|
package = pkgs.bluez.override {withExperimental = true;};
|
2023-04-07 19:52:41 +05:30
|
|
|
};
|
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;
|
2023-05-18 16:11:26 +05:30
|
|
|
extraPackages = [pkgs.intel-media-driver];
|
2023-04-07 19:52:41 +05:30
|
|
|
driSupport = true;
|
2023-05-16 00:19:30 +05:30
|
|
|
driSupport32Bit = true;
|
2023-04-07 19:52:41 +05:30
|
|
|
};
|
|
|
|
sensor.hddtemp = {
|
|
|
|
enable = true;
|
2023-05-18 16:11:26 +05:30
|
|
|
drives = ["/dev/disk/by-path/pci-0000:01:00.0-nvme-1"];
|
2023-03-31 22:06:17 +05:30
|
|
|
};
|
2023-07-15 11:38:42 +05:30
|
|
|
xone.enable = true;
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
|
|
|
}
|