HermitNix_DEPRECATED/Hosts/hertog-laptop/hardware-configuration.nix

43 lines
1.5 KiB
Nix
Raw Normal View History

2023-11-06 19:14:02 +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" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2023-11-19 22:52:14 +00:00
{ device = "/dev/disk/by-uuid/e59c3434-c3fe-473d-9b21-8d3902eb979e";
2023-11-06 19:14:02 +00:00
fsType = "ext4";
};
2023-11-19 22:52:14 +00:00
boot.initrd.luks.devices."luks-169925e5-1b60-431c-8844-45f2dee3ddf9".device = "/dev/disk/by-uuid/169925e5-1b60-431c-8844-45f2dee3ddf9";
2023-11-06 19:14:02 +00:00
fileSystems."/boot" =
2023-11-19 22:52:14 +00:00
{ device = "/dev/disk/by-uuid/84F4-B0F5";
2023-11-06 19:14:02 +00:00
fsType = "vfat";
};
2023-11-19 22:52:14 +00:00
swapDevices =
[
2023-11-19 22:52:14 +00:00
];
2023-11-06 19:14:02 +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.wlp170s0.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;
}