nicks-nix-config/hosts/desktop/hardware-configuration.nix

40 lines
1.4 KiB
Nix
Raw Normal View History

2023-02-26 15:33:30 -08: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")
];
2023-03-09 19:33:53 -08:00
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
2023-02-26 15:33:30 -08:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2023-03-09 19:33:53 -08:00
{ device = "/dev/disk/by-uuid/9d834394-966e-4a2c-8bf2-2d47f12c2d74";
2023-02-26 15:33:30 -08:00
fsType = "ext4";
};
fileSystems."/boot" =
2023-03-09 19:33:53 -08:00
{ device = "/dev/disk/by-uuid/D9D7-DFAB";
2023-02-26 15:33:30 -08:00
fsType = "vfat";
};
swapDevices =
2023-03-09 19:33:53 -08:00
[ { device = "/dev/disk/by-uuid/612ae3f6-be6b-466d-a46f-1fca1278c610"; }
2023-02-26 15:33:30 -08: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;
2023-03-09 19:33:53 -08:00
# networking.interfaces.enp8s0.useDHCP = lib.mkDefault true;
2023-02-26 15:33:30 -08:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}