Watch
0
1
Fork
You've already forked nixos-configuration
0
nixos-configuration/nixosConfigurations/muede-lpt2/hardware.nix
2026-10-10 12:58:10 +02:00

63 lines
1.4 KiB
Nix

{ pkgs, lib, ... }:
{
# intel cpu
boot.kernelModules = [
"kvm-intel"
"xe"
];
networking = {
networkmanager.enable = true;
useDHCP = lib.mkDefault true;
};
boot = {
kernelPackages = pkgs.linuxPackages_zen;
supportedFilesystems = [ "btrfs" ];
# Samsung 990 PRO dropped off the bus (CSTS=0x1, reset failed) on 2026-10-03;
# disable APST so the controller never enters deep power states.
kernelParams = [ "nvme_core.default_ps_max_latency_us=0" ];
initrd = {
supportedFilesystems = [ "btrfs" ];
availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
];
luks.devices = {
"luks-2c654ff2-3c42-48d3-a1e3-9545679afaa3" = {
device = "/dev/disk/by-uuid/2c654ff2-3c42-48d3-a1e3-9545679afaa3";
};
};
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/e4dad0c8-26a1-45e9-bbd9-48565eb6574e";
fsType = "btrfs";
options = [ "subvol=@" ];
};
"/boot" = {
device = "/dev/disk/by-uuid/E2B7-2BC1";
fsType = "vfat";
};
};
swapDevices = [
{
device = "/var/lib/swapfile";
size = 32 * 1024;
}
];
boot.extraModprobeConfig = ''
options snd_hda_intel power_save=0 power_save_controller=N
'';
services.thermald.enable = true;
services.hardware.bolt.enable = true; # thunderbolt security
hardware.bluetooth.enable = true;
}