nix-gscheits/machines/raven/hardware-configuration.nix
2024-03-06 23:19:27 +00:00

54 lines
1.2 KiB
Nix

{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
kernelModules = [ "kvm-intel" ];
initrd = {
availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usb_storage"
"usbhid"
"sd_mod"
"aesni_intel"
"cryptd"
];
kernelModules = [ "dm-snapshot" ];
luks.devices.root = {
name = "root";
device = "/dev/disk/by-uuid/ee78659c-52a5-4e81-8028-b43de08b6a55";
preLVM = true;
allowDiscards = true;
keyFileSize = 4096;
keyFile = "/dev/disk/by-id/usb-jalr_RAM_Mass_Storage_DE6270431F6F342C-0:0";
keyFileTimeout = 5;
};
systemd.enable = true;
};
loader = {
systemd-boot.enable = true;
efi.efiSysMountPoint = "/boot";
efi.canTouchEfiVariables = true;
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/80209d1b-27c6-423d-93e8-cd39e1893873";
fsType = "btrfs";
options = [ "discard=async" "noatime" "compress=zstd" ];
};
"/boot" = {
device = "/dev/disk/by-uuid/20A0-5FD8";
fsType = "vfat";
};
};
}