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

34 lines
998 B
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")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
2024-01-04 21:21:04 -05:00
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/mapper/lvmroot-root";
2024-01-04 21:21:04 -05:00
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/D9C8-2EB6";
2024-01-04 21:21:04 -05:00
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
2024-01-04 21:21:04 -05:00
};
swapDevices =
[ { device = "/dev/mapper/lvmroot-swap"; }
2024-01-04 21:21:04 -05:00
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}