67 lines
2.6 KiB
Nix
67 lines
2.6 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, ... }:
|
||
|
||
{
|
||
imports =
|
||
[
|
||
(modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
# Battery is a fix for X1 extreme gen 2
|
||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" "battery"];
|
||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||
boot.kernelModules = [ "kvm-intel" ];
|
||
boot.extraModulePackages = [ ];
|
||
|
||
fileSystems."/" =
|
||
{
|
||
device = "/dev/disk/by-uuid/311840fb-5c15-4056-ba1e-4af146a5456f";
|
||
fsType = "ext4";
|
||
};
|
||
|
||
boot.initrd.luks.devices."luks".device = "/dev/disk/by-uuid/e95746e9-f437-4d34-b15f-bcdb2fcf464e";
|
||
|
||
boot.resumeDevice = "/dev/disk/by-uuid/481b9419-f70a-403e-91c7-3523ac5336e6";
|
||
|
||
fileSystems."/boot" =
|
||
{
|
||
device = "/dev/disk/by-uuid/C8F1-789F";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0077" "dmask=0077" ];
|
||
};
|
||
|
||
swapDevices = [
|
||
{device = "/dev/disk/by-uuid/481b9419-f70a-403e-91c7-3523ac5336e6";}
|
||
];
|
||
|
||
# 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;
|
||
# networking.interfaces.enp12s0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.wlp82s0.useDHCP = lib.mkDefault true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
|
||
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller
|
||
|
||
|
||
##### ThinkpadX1 specific #####
|
||
# New ThinkPads have a different TrackPoint manufacturer/name.
|
||
# See also https://certification.ubuntu.com/catalog/component/input/5313/input%3ATPPS/2ElanTrackPoint/
|
||
hardware.trackpoint.device = "TPPS/2 Elan TrackPoint";
|
||
|
||
# services.throttled.enable = lib.mkDefault true;
|
||
|
||
hardware.trackpoint.enable = lib.mkDefault true;
|
||
hardware.trackpoint.emulateWheel = lib.mkDefault config.hardware.trackpoint.enable;
|
||
services.fprintd.enable = true;
|
||
services.fstrim.enable = lib.mkDefault true;
|
||
########################################################
|
||
}
|