2023-11-04 16:12:45 +05:30
|
|
|
{ lib
|
|
|
|
, pkgs
|
|
|
|
, ...
|
2023-05-18 16:11:26 +05:30
|
|
|
}: {
|
2023-11-04 16:12:45 +05:30
|
|
|
imports = [ ./kernel.nix ./filesystem.nix ];
|
2023-03-15 22:11:59 +05:30
|
|
|
|
2023-04-04 09:04:29 +05:30
|
|
|
boot = {
|
2024-06-20 13:51:00 +05:30
|
|
|
initrd = {
|
|
|
|
luks.devices = {
|
|
|
|
luks0 = {
|
|
|
|
allowDiscards = true;
|
|
|
|
bypassWorkqueues = true;
|
|
|
|
device = "/dev/disk/by-partlabel/CRYPT";
|
|
|
|
preLVM = true;
|
|
|
|
};
|
2023-04-04 09:04:29 +05:30
|
|
|
};
|
2024-06-20 13:51:00 +05:30
|
|
|
supportedFilesystems = [ "vfat" "btrfs" ];
|
2023-04-04 09:04:29 +05:30
|
|
|
};
|
2023-04-07 19:52:41 +05:30
|
|
|
loader.efi.canTouchEfiVariables = true;
|
|
|
|
resumeDevice = "/dev/vg0/swap";
|
2024-06-20 13:51:00 +05:30
|
|
|
supportedFilesystems = [ "vfat" "ntfs" "exfat" "ext4" "btrfs" ];
|
2023-04-04 09:04:29 +05:30
|
|
|
};
|
|
|
|
|
2023-11-04 16:12:45 +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;
|
|
|
|
};
|
|
|
|
};
|
2024-01-28 15:02:40 +05:30
|
|
|
package = pkgs.bluez.override { enableExperimental = 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;
|
2024-06-22 21:48:08 +05:30
|
|
|
extraPackages = with pkgs; [ intel-media-driver vpl-gpu-rt libvdpau-va-gl ];
|
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-11-04 16:12:45 +05:30
|
|
|
drives = [ "/dev/disk/by-path/pci-0000:01:00.0-nvme-1" ];
|
2023-03-31 22:06:17 +05:30
|
|
|
};
|
2024-03-01 22:09:27 +05:30
|
|
|
steam-hardware.enable = true;
|
2023-07-15 11:38:42 +05:30
|
|
|
xone.enable = true;
|
2023-03-15 22:11:59 +05:30
|
|
|
};
|
|
|
|
}
|