From 275d77ab13e2e143f6f89346510044f7755785fb Mon Sep 17 00:00:00 2001 From: derped Date: Tue, 15 Jul 2025 21:56:26 +0200 Subject: [PATCH] Lilim: update hardware-configuration --- machines/Lilim/hardware-configuration.nix | 26 +++++++---------------- 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/machines/Lilim/hardware-configuration.nix b/machines/Lilim/hardware-configuration.nix index 3858806..d020141 100644 --- a/machines/Lilim/hardware-configuration.nix +++ b/machines/Lilim/hardware-configuration.nix @@ -1,14 +1,16 @@ { - nixpkgs, config, pkgs, + modulesPath, + nixos-hardware, ... }: -let - cfg = config.machine; -in + { - imports = [ "${nixpkgs}/nixos/modules/installer/scan/not-detected.nix" ]; + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + nixos-hardware.nixosModules.lenovo-thinkpad-t550 + ]; boot = { loader.systemd-boot = { @@ -34,16 +36,10 @@ in luks.devices."btrfs-crypt".device = "/dev/disk/by-uuid/10435741-b864-453d-ab18-4dc710db1378"; }; kernelModules = [ - "acpi_call" "i915" "kvm-intel" "uinput" ]; - # 5_10 breaks my touchpad/mouse buttons - # https://bbs.archlinux.org/viewtopic.php?id=254885 - # maybe modprobe hid_rmi or i2c_i801 - # blacklistedKernelModules = [ "i2c_i801" ]; - extraModulePackages = with config.boot.kernelPackages; [ acpi_call ]; # pkgs.gitpkgs.linuxPackages_latest.hid-nintendo ]; kernelParams = [ "intel_iommu=on" ]; extraModprobeConfig = '' options i915 enable_fbc=1 enable_guc=3 @@ -61,7 +57,7 @@ in fsType = "tmpfs"; options = [ "defaults" - "size=6G" + "size=1G" "mode=755" "noexec" ]; @@ -123,12 +119,6 @@ in cpu.intel.updateMicrocode = true; enableAllFirmware = false; ksm.enable = true; - graphics = { - extraPackages = with pkgs; [ (intel-vaapi-driver.override { enableHybridCodec = true; }) ]; - extraPackages32 = with pkgs.pkgsi686Linux; [ - (intel-vaapi-driver.override { enableHybridCodec = true; }) - ]; - }; bluetooth = { enable = true;