dotfiles/hosts/bao/hardware-configuration.nix

49 lines
1.6 KiB
Nix
Raw Normal View History

2022-12-27 06:18:09 +00: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.
{
2023-06-18 00:46:31 +00:00
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
2022-12-27 06:18:09 +00:00
2023-01-12 17:50:46 +00:00
boot.loader.systemd-boot.enable = true;
2023-06-18 00:46:31 +00:00
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"];
2022-12-27 06:18:09 +00:00
# boot.initrd.kernelModules = [ "amdgpu" ];
2023-06-18 00:46:31 +00:00
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-amd" "coretemp"];
boot.extraModulePackages = [];
2022-12-27 06:18:09 +00:00
fileSystems."/" =
# Might be wise to use /dev/nvme0p1 instead
2023-01-13 06:42:21 +00:00
{
device = "/dev/disk/by-uuid/27fc09b3-e3b7-4883-94a0-c313a0e0abe2";
2022-12-27 06:18:09 +00:00
fsType = "ext4";
};
fileSystems."/boot" =
# Might be wise to use /dev/nvme0p2 instead
2023-01-13 06:42:21 +00:00
{
device = "/dev/disk/by-uuid/EBA6-394D";
2022-12-27 06:18:09 +00:00
fsType = "vfat";
};
2023-06-18 00:46:31 +00:00
swapDevices = [];
2022-12-27 06:18:09 +00: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.enp5s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}