nix/framework/hardware-configuration.nix

49 lines
2.0 KiB
Nix
Raw 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")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usbhid" ];
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;
# networking.interfaces.br-07391a631710.useDHCP = lib.mkDefault true;
# networking.interfaces.br-25489814654a.useDHCP = lib.mkDefault true;
# networking.interfaces.br-6a09bcb636d7.useDHCP = lib.mkDefault true;
# networking.interfaces.br-e4e3b736637d.useDHCP = lib.mkDefault true;
# networking.interfaces.docker0.useDHCP = lib.mkDefault true;
# networking.interfaces.wg0.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;
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
2022-08-10 07:41:44 +00:00
}