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

46 lines
1.0 KiB
Nix

{ config, lib, pkgs, modulesPath, ... }:
{
# imports
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
# bootloader
boot.extraModulePackages = [ ];
boot.initrd.kernelModules = [ "kvm-intel" ];
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";
};
};
};
# filesystems - boot
fileSystems."/boot" = {
device = "/dev/disk/by-label/BOOT";
fsType = "vfat";
};
# filesystems - root
fileSystems."/" = {
device = "/dev/disk/by-label/root";
fsType = "ext4";
};
# swap
swapDevices = [ {
device = "/swapfile";
size = 16384;
} ];
# networking
networking.useDHCP = lib.mkDefault true;
# hardware
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}