2024-07-30 20:42:59 +02:00
|
|
|
{ lib, config, ... }:
|
|
|
|
{
|
|
|
|
boot.initrd.availableKernelModules = [
|
|
|
|
"nvme"
|
|
|
|
"xhci_pci"
|
|
|
|
"ahci"
|
|
|
|
"usbhid"
|
|
|
|
];
|
|
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
|
|
boot.extraModulePackages = [ ];
|
|
|
|
|
|
|
|
# Volumes
|
|
|
|
boot.initrd.luks.devices = {
|
|
|
|
crypted-nixos = {
|
2024-08-31 00:06:00 +02:00
|
|
|
device = "/dev/disk/by-uuid/a4483eca-b546-4519-8591-c922a0d7732a";
|
2024-07-30 20:42:59 +02:00
|
|
|
preLVM = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
2024-08-31 00:06:00 +02:00
|
|
|
device = "/dev/disk/by-uuid/ce6814ce-808e-42c3-ba79-ae821b2935ba";
|
2024-07-30 20:42:59 +02:00
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
"/boot" = {
|
2024-08-31 00:06:00 +02:00
|
|
|
device = "/dev/disk/by-uuid/66D3-9AE4";
|
2024-07-30 20:42:59 +02:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
"/nix" = {
|
2024-08-31 00:06:00 +02:00
|
|
|
device = "/dev/disk/by-uuid/dc3a9b6f-da04-4e9b-a39d-a55300b5ecba";
|
2024-07-30 20:42:59 +02:00
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
"/home" = {
|
2024-08-31 00:06:00 +02:00
|
|
|
device = "/dev/disk/by-uuid/5daead25-3e7b-4f40-9540-7283e2fc239d";
|
2024-07-30 20:42:59 +02:00
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-08-31 00:06:00 +02:00
|
|
|
swapDevices = [
|
|
|
|
{
|
|
|
|
device = "/dev/disk/by-uuid/7c9eeaf4-a943-41c3-97a0-352acf213c55";
|
|
|
|
randomEncryption.enable = true;
|
|
|
|
}
|
|
|
|
];
|
2024-07-30 20:42:59 +02:00
|
|
|
|
2024-08-01 21:40:51 +02:00
|
|
|
my.hardware.gpu = "nvidia";
|
2024-07-30 20:42:59 +02:00
|
|
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
|
|
}
|