nixos-config/hosts/desktop/valhalla/hardware-configuration.nix

45 lines
1.6 KiB
Nix
Raw Normal View History

2024-03-09 17:41:02 -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")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2024-03-10 14:40:07 -07:00
{ device = "/dev/disk/by-uuid/ebd125c4-ab78-4604-a0be-826d0a3d0c03";
fsType = "btrfs";
options = [ "subvol=@" ];
2024-03-09 17:41:02 -08:00
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/ED13-F512";
fsType = "vfat";
};
fileSystems."/home" =
{ device = "/dev/disk/by-uuid/f5dd6012-e88b-444d-99f6-4a468493bd13";
fsType = "xfs";
};
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.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}