infrastructure/hosts/neodymium/hardware-configuration.nix

43 lines
1.5 KiB
Nix
Raw Normal View History

2022-12-19 22:35:54 +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.
{ config, lib, pkgs, modulesPath, ... }:
{
2022-12-21 19:29:15 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2022-12-19 22:35:54 +00:00
2022-12-21 19:29:15 +00:00
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
2022-12-19 22:35:54 +00:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
2022-12-21 19:29:15 +00:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/b0ea5f1f-104f-4026-840a-4d46f3e827d1";
fsType = "btrfs";
options = [ "subvol=nixos" ];
};
2022-12-19 22:35:54 +00:00
2022-12-21 19:29:15 +00:00
boot.initrd.luks.devices."nixenc".device =
"/dev/disk/by-uuid/93d0b0d8-b586-48cf-acc2-025fba1eaadb";
2022-12-19 22:35:54 +00:00
2022-12-21 19:29:15 +00:00
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6D10-BBAF";
fsType = "vfat";
};
2022-12-19 22:35:54 +00:00
swapDevices = [ ];
# 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.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2022-12-21 19:29:15 +00:00
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-12-19 22:35:54 +00:00
}