dotfiles/hosts/thinkpad/hardware-configuration.nix

38 lines
1.5 KiB
Nix
Raw Normal View History

2024-05-18 01:10:04 +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.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
2024-07-31 07:17:52 +02:00
[ (modulesPath + "/installer/scan/not-detected.nix")
2024-05-18 01:10:04 +02:00
];
2025-01-11 12:03:31 +01:00
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" "sdhci_pci" ];
2024-05-18 01:10:04 +02:00
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
2025-01-11 12:03:31 +01:00
{ device = "/dev/disk/by-uuid/6d0032be-b81f-4db6-a6f1-078ae85939db";
2024-05-18 01:10:04 +02:00
fsType = "ext4";
};
2025-01-11 12:03:31 +01:00
boot.initrd.luks.devices."luks-bd115bee-c7d6-4c9e-8e3b-e32c39edb80f".device = "/dev/disk/by-uuid/bd115bee-c7d6-4c9e-8e3b-e32c39edb80f";
2024-05-18 01:10:04 +02:00
swapDevices =
2025-01-11 12:03:31 +01:00
[ { device = "/dev/disk/by-uuid/ddc26af8-f38f-4f2f-8c9d-44053794eda7"; }
2024-07-31 07:17:52 +02:00
];
2024-05-18 01:10:04 +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;
2025-01-11 12:03:31 +01:00
# networking.interfaces.eno0.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true;
2024-05-18 01:10:04 +02:00
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}