This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/systems/itclt75/hardware-configuration.nix

45 lines
1014 B
Nix
Raw Permalink Normal View History

2024-03-24 16:15:15 +01:00
{ config, lib, pkgs, modulesPath, ... }:
{
# imports
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
# bootloader
2024-04-03 23:26:46 +02:00
boot.initrd.kernelModules = [ "kvm-intel" ];
2024-03-24 16:15:15 +01:00
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.luks = {
devices = {
# encrypted root
"luks-78011bc3-67ab-49d6-89f5-be5f50a6c013" = {
device = "/dev/disk/by-uuid/78011bc3-67ab-49d6-89f5-be5f50a6c013";
2024-03-24 16:15:15 +01:00
};
};
};
# filesystems - boot
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
2024-03-24 16:15:15 +01:00
fsType = "vfat";
};
# filesystems - root
fileSystems."/" = {
device = "/dev/disk/by-label/root";
2024-03-24 16:15:15 +01:00
fsType = "ext4";
};
# swap
swapDevices = [ {
device = "/swapfile";
size = 16384;
} ];
2024-03-24 16:15:15 +01:00
# networking
networking.useDHCP = lib.mkDefault true;
# hardware
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}