dotfiles/nix/hosts/lemp11/hardware-configuration.nix

51 lines
1.6 KiB
Nix
Raw Normal View History

# 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.
2024-09-23 12:17:10 +00:00
{
config,
lib,
modulesPath,
...
}:
{
2024-09-23 12:17:10 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2024-09-23 12:17:10 +00:00
boot.initrd.availableKernelModules = [
"xhci_pci"
"thunderbolt"
"nvme"
"usb_storage"
"usbhid"
"sd_mod"
"sdhci_pci"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2024-09-23 12:17:10 +00:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/e577c869-18a1-4830-9e00-124fcabdab89";
fsType = "ext4";
};
2024-09-23 12:17:10 +00:00
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/48FE-D346";
fsType = "vfat";
};
2024-09-23 12:17:10 +00:00
swapDevices = [ { device = "/dev/disk/by-uuid/2dce327b-f18d-4727-a9a2-e79d2b5161f9"; } ];
# 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.enp0s13f0u1u2u4.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}