{ config, lib, pkgs, ... }: { networking = { hostName = "nixT14s"; interfaces.enp2s0f0.useDHCP = true; interfaces.wlp3s0.useDHCP = true; }; networking = { # We want to NAT container traffic nat = { enable = true; internalInterfaces = [ "ve-test" ]; externalInterface = "wlp3s0"; }; }; boot = { kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.8") pkgs.linuxPackages_5_10; loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; efi.efiSysMountPoint = "/boot"; }; initrd.luks.devices = { lvmroot = { device = "/dev/disk/by-uuid/3aa2923c-928d-4050-82dc-21be53b2af8e"; preLVM = true; }; }; initrd.kernelModules = [ "amdgpu" ]; }; hardware = { acpilight.enable = true; opengl = { driSupport = true; driSupport32Bit = true; extraPackages = with pkgs; [ amdvlk ]; # extraPackages32 = with pkgs; [ # driversi686Linux.amdvlk # ]; }; }; services = { tlp = { enable = true; settings = { START_CHARGE_THRESH_BAT0 = 80; STOP_CHARGE_THRESH_BAT0 = 85; }; }; xserver.videoDrivers = ["amdgpu"]; }; environment.systemPackages = with pkgs; [ linuxPackages.acpi_call acpilight ]; }