Switched to using the latest kernel packages for the x1 system by removing the comment from the kernelPackages line and setting it to lib.mkOverride 0 pkgs.linuxPackages_latest. This ensures the system uses the most recent kernel modules and features while maintaining consistency with other configuration changes. The change aligns with recent system updates and package management improvements.
81 lines
2.3 KiB
Nix
81 lines
2.3 KiB
Nix
# 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
|
||
, inputs
|
||
, ...
|
||
}:
|
||
|
||
{
|
||
imports = [
|
||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-11th-gen
|
||
];
|
||
|
||
hardware.enableRedistributableFirmware = lib.mkDefault true;
|
||
|
||
boot = {
|
||
initrd.availableKernelModules = [
|
||
"thunderbolt"
|
||
"nvme"
|
||
"uas"
|
||
"usbhid"
|
||
"sd_mod"
|
||
];
|
||
initrd.kernelModules = [ ];
|
||
kernelPackages = lib.mkOverride 0 pkgs.linuxPackages_latest;
|
||
kernelModules = [
|
||
"kvm-intel"
|
||
"amdgpu"
|
||
];
|
||
kernelParams = [
|
||
"lockdown=confidentiality"
|
||
"intel_iommu=on"
|
||
"quiet"
|
||
"splash"
|
||
"video=efifb:nobgrt"
|
||
];
|
||
|
||
extraModulePackages = [ ];
|
||
|
||
initrd.luks.devices."luks-0e2792db-1b80-49a7-b2eb-54e4b5fc3502" = {
|
||
device = "/dev/disk/by-uuid/0e2792db-1b80-49a7-b2eb-54e4b5fc3502";
|
||
allowDiscards = true;
|
||
};
|
||
|
||
initrd.luks.devices."luks-280f2e07-e5fc-478e-b7ee-445c99bea415" = {
|
||
device = "/dev/disk/by-uuid/280f2e07-e5fc-478e-b7ee-445c99bea415";
|
||
allowDiscards = true;
|
||
};
|
||
};
|
||
|
||
services.btrfs.autoScrub.enable = true;
|
||
|
||
fileSystems = {
|
||
"/" = {
|
||
device = "/dev/disk/by-uuid/1106202c-c3bf-4c15-b7cd-e78749e5c955";
|
||
fsType = "btrfs";
|
||
options = [ "subvol=@" ];
|
||
};
|
||
|
||
"/boot" = {
|
||
device = "/dev/disk/by-uuid/13C4-A825";
|
||
fsType = "vfat";
|
||
};
|
||
};
|
||
|
||
swapDevices = [{ device = "/dev/mapper/luks-280f2e07-e5fc-478e-b7ee-445c99bea415"; }];
|
||
|
||
# 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.enp82s0u1u3u4.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
}
|