nix/framework/hardware-configuration.nix

42 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2022-08-10 07:41:44 +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, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
2023-03-31 12:17:02 +00:00
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" ];
2022-08-10 07:41:44 +00:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/8b59ffd8-5c2a-4251-a5f6-00983895e19d";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/7438-EF9A";
fsType = "vfat";
};
swapDevices =
[ { device = "/dev/disk/by-uuid/7e88d61f-5581-45fb-82f1-29a0e0caf4c0"; }
];
2022-08-10 07:41:44 +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;
2023-03-31 12:17:02 +00:00
# networking.interfaces.enp0s13f0u3c2.useDHCP = lib.mkDefault true;
2022-08-10 07:41:44 +00:00
# networking.interfaces.wlp166s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2022-08-10 07:41:44 +00:00
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}