nixos-config/nixos76/system/hardware-configuration.nix

44 lines
1.6 KiB
Nix
Raw Normal View History

2023-06-16 23:08:03 +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 =
2024-07-19 15:03:21 +00:00
[
(modulesPath + "/installer/scan/not-detected.nix")
2023-06-16 23:08:03 +00:00
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2024-07-19 15:03:21 +00:00
{
device = "/dev/disk/by-uuid/6d62467a-ccc1-44ed-a1cc-f473b3962c64";
2023-06-16 23:08:03 +00:00
fsType = "ext4";
};
fileSystems."/boot" =
2024-07-19 15:03:21 +00:00
{
device = "/dev/disk/by-uuid/2330-1A62";
2023-06-16 23:08:03 +00:00
fsType = "vfat";
};
swapDevices =
2024-07-19 15:03:21 +00:00
[{ device = "/dev/disk/by-uuid/fda4f9fe-383f-477c-b2a2-c07f7efcc161"; }];
2023-06-16 23:08:03 +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.enp58s0f1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp59s0.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;
}