nixos-configs/nixosConfigurations/vinzenz-lpt2/hardware.nix

65 lines
1.3 KiB
Nix
Raw Normal View History

2025-09-14 14:01:42 +02:00
{
vinzenzNixosModules,
pkgs,
2025-09-14 14:12:14 +02:00
lib,
2025-09-14 14:01:42 +02:00
...
}:
2024-10-27 12:33:35 +01:00
{
2025-09-14 13:45:48 +02:00
imports = [ vinzenzNixosModules.intel-graphics ];
config = {
# intel cpu
2024-12-01 10:03:30 +01:00
boot.kernelModules = [
"kvm-intel"
"xe"
];
2025-09-14 14:12:14 +02:00
networking = {
networkmanager.enable = true;
useDHCP = lib.mkDefault true;
};
2025-09-14 14:01:42 +02:00
boot = {
kernelPackages = pkgs.linuxPackages_zen;
supportedFilesystems = [ "btrfs" ];
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";
2024-10-27 12:33:35 +01:00
options = [ "subvol=@" ];
};
"/boot" = {
device = "/dev/disk/by-uuid/E2B7-2BC1";
fsType = "vfat";
};
};
swapDevices = [
{
device = "/var/lib/swapfile";
size = 32 * 1024;
}
];
services.thermald.enable = true;
services.hardware.bolt.enable = true; # thunderbolt security
2025-09-14 14:12:14 +02:00
hardware.bluetooth.enable = true;
};
}