nix-configs/nixos/hardware-configuration.nix

45 lines
1.7 KiB
Nix
Raw Normal View History

2023-11-25 14:37:36 +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")
];
2023-12-25 12:38:23 +00:00
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
2023-11-25 14:37:36 +00:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2023-12-25 12:38:23 +00:00
{ device = "/dev/disk/by-uuid/7cf4b63a-98c6-4519-8939-7e2fbb1ce7b3";
2023-11-25 14:37:36 +00:00
fsType = "ext4";
};
2023-12-25 12:38:23 +00:00
boot.initrd.luks.devices."luks-41eb2059-e19b-4d6f-8272-db7be909bd8f".device = "/dev/disk/by-uuid/41eb2059-e19b-4d6f-8272-db7be909bd8f";
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/6CC6-A30D";
fsType = "vfat";
};
2023-11-25 14:37:36 +00:00
swapDevices =
2023-12-25 12:38:23 +00:00
[ { device = "/dev/disk/by-uuid/3ae91855-7788-4842-9807-0c30b966ce84"; }
2023-11-25 14:37:36 +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;
2023-12-25 12:38:23 +00:00
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
2023-11-25 14:37:36 +00:00
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
2023-12-25 12:38:23 +00:00
# networking.interfaces.wwan0.useDHCP = lib.mkDefault true;
2023-11-25 14:37:36 +00:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2023-12-25 12:38:23 +00:00
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
2023-11-25 14:37:36 +00:00
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}