2024-10-09 14:06:35 +02:00
|
|
|
{ config, lib, modulesPath, ... }:
|
2024-09-30 13:17:30 +02:00
|
|
|
|
|
|
|
{
|
2024-10-07 14:21:31 +02:00
|
|
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
2024-09-30 13:17:30 +02:00
|
|
|
|
2024-10-07 14:21:31 +02:00
|
|
|
boot.initrd.availableKernelModules =
|
|
|
|
[ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
|
2024-09-30 13:17:30 +02:00
|
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
2024-10-07 14:21:31 +02:00
|
|
|
boot.initrd.luks.devices.crypted.device =
|
|
|
|
"/dev/disk/by-uuid/6ee3bc81-e827-4b53-9655-8acff61dc369";
|
2024-09-30 13:17:30 +02:00
|
|
|
|
2024-10-07 14:21:31 +02:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-uuid/84df99b4-ba9f-418b-9b79-c015ed17ed30";
|
|
|
|
fsType = "xfs";
|
|
|
|
};
|
2024-09-30 13:17:30 +02:00
|
|
|
|
2024-10-07 14:21:31 +02:00
|
|
|
fileSystems."/var" = {
|
|
|
|
device = "/dev/disk/by-uuid/7ea116a5-b910-450b-aeeb-d006b820be92";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2024-09-30 13:17:30 +02:00
|
|
|
|
2024-10-07 14:21:31 +02:00
|
|
|
fileSystems."/home" = {
|
|
|
|
device = "/dev/disk/by-uuid/0c4f356b-b738-4c63-915a-ef82dd59c01e";
|
|
|
|
fsType = "btrfs";
|
|
|
|
};
|
2024-09-30 13:17:30 +02:00
|
|
|
|
2024-10-07 14:21:31 +02:00
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/58CB-B4D3";
|
|
|
|
fsType = "vfat";
|
|
|
|
options = [ "fmask=0077" "dmask=0077" ];
|
|
|
|
};
|
2024-09-30 13:17:30 +02:00
|
|
|
|
2024-10-07 14:21:31 +02:00
|
|
|
swapDevices = [{
|
2024-09-30 13:17:30 +02:00
|
|
|
device = "/swapfile";
|
|
|
|
size = 8 * 1024;
|
2024-10-07 14:21:31 +02:00
|
|
|
}];
|
2024-09-30 13:17:30 +02:00
|
|
|
|
|
|
|
networking.useDHCP = lib.mkDefault true;
|
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
2024-10-07 14:21:31 +02:00
|
|
|
hardware.cpu.intel.updateMicrocode =
|
|
|
|
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
2024-09-30 13:17:30 +02:00
|
|
|
}
|