infrastructure/nixos/hosts/olympus/eevee/hardware-configuration.nix

43 lines
1.5 KiB
Nix
Raw Normal View History

2023-04-22 17:38:18 +02: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.
2023-05-04 13:06:08 +02:00
{ config, lib, modulesPath, ... }:
2023-04-22 17:38:18 +02:00
{
2023-05-04 13:08:10 +02:00
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
2023-09-25 11:56:02 +02:00
boot = {
2023-04-22 17:38:18 +02:00
2023-09-25 11:56:02 +02:00
initrd.availableKernelModules =
[ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
initrd.kernelModules = [ ];
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
};
2023-04-22 17:38:18 +02:00
2023-05-04 13:08:10 +02:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/947a98af-9a4e-4811-a2ca-9aa00b319e9c";
fsType = "btrfs";
options = [ "subvol=@" ];
};
2023-04-22 17:38:18 +02:00
2023-05-04 13:08:10 +02:00
fileSystems."/boot/efi" = {
device = "/dev/disk/by-uuid/D883-F146";
fsType = "vfat";
};
2023-04-22 17:38:18 +02:00
swapDevices =
2023-05-04 13:08:10 +02:00
[{ device = "/dev/disk/by-uuid/a99402e1-6f2a-4c4b-b69f-aae2fd13ffc0"; }];
2023-04-22 17:38:18 +02: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.enp0s31f6.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2023-05-04 13:08:10 +02:00
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
2023-04-22 17:38:18 +02:00
}