dotfiles/hosts/Kell/hardware-configuration.nix

31 lines
868 B
Nix
Raw Normal View History

2024-06-02 16:36:56 +02:00
{ config, lib, pkgs, modulesPath, ... }:
{
2024-09-13 10:46:49 +02:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2024-06-02 16:36:56 +02:00
2024-09-13 10:46:49 +02:00
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
2024-06-02 16:36:56 +02:00
2024-09-13 10:46:49 +02:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/daf843cd-8e63-48ed-831a-e055929e86cb";
fsType = "ext4";
};
2024-06-02 16:36:56 +02:00
2024-09-13 10:46:49 +02:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/E1D9-7A48";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
2024-06-02 16:36:56 +02:00
2024-09-13 10:46:49 +02:00
swapDevices = [ ];
2024-06-02 16:36:56 +02:00
2024-09-28 17:16:27 +02:00
networking.useDHCP = lib.mkDefault false;
2024-06-02 16:36:56 +02:00
2024-09-13 10:46:49 +02:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2024-06-02 16:36:56 +02:00
}