nixos-config/configurations/london/hardware.nix

52 lines
1.1 KiB
Nix
Raw Normal View History

{ 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";
preLVM = true;
};
};
fileSystems = {
"/" = {
2024-08-31 00:06:00 +02:00
device = "/dev/disk/by-uuid/ce6814ce-808e-42c3-ba79-ae821b2935ba";
fsType = "ext4";
};
"/boot" = {
2024-08-31 00:06:00 +02:00
device = "/dev/disk/by-uuid/66D3-9AE4";
fsType = "vfat";
};
"/nix" = {
2024-08-31 00:06:00 +02:00
device = "/dev/disk/by-uuid/dc3a9b6f-da04-4e9b-a39d-a55300b5ecba";
fsType = "ext4";
};
"/home" = {
2024-08-31 00:06:00 +02:00
device = "/dev/disk/by-uuid/5daead25-3e7b-4f40-9540-7283e2fc239d";
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-08-01 21:40:51 +02:00
my.hardware.gpu = "nvidia";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}