nix-dotfiles/hosts/randolph/hardware-configuration.nix

43 lines
1.5 KiB
Nix
Raw Normal View History

2024-01-04 21:21:04 -05:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2025-05-23 20:41:04 -04:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" "cryptd" ];
boot.initrd.luks.devices."cryptroot".device = "/dev/nvme0n1p2";
2024-01-04 21:21:04 -05:00
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2025-05-23 20:41:04 -04:00
{ device = "/dev/lvmroot/root";
2024-01-04 21:21:04 -05:00
fsType = "ext4";
};
fileSystems."/boot" =
2025-05-23 20:41:04 -04:00
{ device = "/dev/disk/by-uuid/39B5-9DA9";
2024-01-04 21:21:04 -05:00
fsType = "vfat";
2025-05-23 20:41:04 -04:00
options = [ "fmask=0022" "dmask=0022" ];
2024-01-04 21:21:04 -05:00
};
swapDevices =
2025-05-23 20:41:04 -04:00
[ { device = "/dev/lvmroot/swap"; }
2024-01-04 21:21:04 -05:00
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2025-05-23 20:41:04 -04:00
hardware.enableAllFirmware = true;
2024-01-04 21:21:04 -05:00
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}