dotfiles/system/nixos/apollo/hardware-configuration.nix

42 lines
1.5 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.
{ config, lib, pkgs, modulesPath, ... }:
{
2023-05-03 21:19:59 +00:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2023-05-03 21:19:59 +00:00
boot.initrd.availableKernelModules =
[ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
2023-05-03 21:19:59 +00:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/62b28eee-5b67-41af-9fcf-95e8171e1897";
fsType = "ext4";
};
2023-05-03 21:19:59 +00:00
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/378D-387D";
fsType = "vfat";
};
swapDevices =
2023-05-03 21:19:59 +00:00
[{ device = "/dev/disk/by-uuid/f95ef42e-09d9-4198-b8f3-2e22ea8c4f9e"; }];
# 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.enp53s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp54s0.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2023-05-03 21:19:59 +00:00
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2022-12-12 09:20:41 +00:00
hardware.bluetooth.enable = true;
}