From f24232fc000a65e7a4bba9978c69b7593148817f Mon Sep 17 00:00:00 2001 From: CDaut Date: Thu, 2 May 2024 15:42:56 +0200 Subject: [PATCH] rofi offset --- configuration.nix | 2 +- flake.lock | 12 ++++++------ hardware_configuration.nix | 19 +++++++++++++++++-- programm_configs/rofi.nix | 1 + 4 files changed, 25 insertions(+), 9 deletions(-) diff --git a/configuration.nix b/configuration.nix index ae65e86..09ca9f3 100644 --- a/configuration.nix +++ b/configuration.nix @@ -137,7 +137,7 @@ environment.systemPackages = with pkgs; [ vim wget - ] ++ (if !inputs.x11mode then [greetd.regreet] else []); + ] ++ (if !inputs.x11mode then [ greetd.regreet ] else [ ]); programs.dconf.enable = true; diff --git a/flake.lock b/flake.lock index 09ed4ff..b24e3b0 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1714203603, - "narHash": "sha256-eT7DENhYy7EPLOqHI9zkIMD9RvMCXcqh6gGqOK5BWYQ=", + "lastModified": 1714515075, + "narHash": "sha256-azMK7aWH0eUc3IqU4Fg5rwZdB9WZBvimOGG3piqvtsY=", "owner": "nix-community", "repo": "home-manager", - "rev": "c1609d584a6b5e9e6a02010f51bd368cb4782f8e", + "rev": "6d3b6dc9222c12b951169becdf4b0592ee9576ef", "type": "github" }, "original": { @@ -22,11 +22,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1714076141, - "narHash": "sha256-Drmja/f5MRHZCskS6mvzFqxEaZMeciScCTFxWVLqWEY=", + "lastModified": 1714253743, + "narHash": "sha256-mdTQw2XlariysyScCv2tTE45QSU9v/ezLcHJ22f0Nxc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "7bb2ccd8cdc44c91edba16c48d2c8f331fb3d856", + "rev": "58a1abdbae3217ca6b702f03d3b35125d88a2994", "type": "github" }, "original": { diff --git a/hardware_configuration.nix b/hardware_configuration.nix index 404e135..874342f 100644 --- a/hardware_configuration.nix +++ b/hardware_configuration.nix @@ -9,7 +9,8 @@ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" "sdhci_pci" ]; + # 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 = [ ]; boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; @@ -44,5 +45,19 @@ 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 on boot + 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; + ######################################################## } diff --git a/programm_configs/rofi.nix b/programm_configs/rofi.nix index 1f429b2..35008cd 100644 --- a/programm_configs/rofi.nix +++ b/programm_configs/rofi.nix @@ -12,6 +12,7 @@ icon-theme = "Papirus"; dpi = 100; show-icons = true; + yoffset = 50; }; }; }