fix touchpad, fix stylix polarity

This commit is contained in:
EdenQwQ 2026-03-24 13:30:13 +08:00
parent f28d2287ba
commit 91ebcfa4f1
6 changed files with 27 additions and 9 deletions

17
flake.lock generated
View file

@ -962,6 +962,22 @@
"type": "github"
}
},
"nixpkgs-new-libinput": {
"locked": {
"lastModified": 1773138432,
"narHash": "sha256-9FtasZuEakGyXCqt7IbSALG5bgvKRKpp5DpHqlUS6V4=",
"owner": "skowalak",
"repo": "nixpkgs",
"rev": "3444cf952961ac97b3366df43fa36ec393f85599",
"type": "github"
},
"original": {
"owner": "skowalak",
"ref": "libinput-update-1.31.0",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-r": {
"locked": {
"lastModified": 1773964973,
@ -1579,6 +1595,7 @@
"nixGL": "nixGL",
"nixd": "nixd",
"nixpkgs": "nixpkgs_14",
"nixpkgs-new-libinput": "nixpkgs-new-libinput",
"nixpkgs-r": "nixpkgs-r",
"nixpkgs-stable": "nixpkgs-stable_2",
"nixpkgs-wayland": "nixpkgs-wayland",

View file

@ -49,6 +49,7 @@
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.11";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
nixpkgs-r.url = "github:NixOS/nixpkgs/nixos-25.11";
nixpkgs-new-libinput.url = "github:skowalak/nixpkgs/libinput-update-1.31.0";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -76,7 +76,7 @@ let
}
)
// {
inherit polarity;
polarity = forceOrDefault polarity;
};
buildSpecialisation =

View file

@ -11,7 +11,6 @@ in
autoEnable = false;
targets.gtk.enable = true;
targets.gtk.flatpakSupport.enable = true;
polarity = "dark";
cursor = {
package = pkgs.graphite-cursors;
name = "graphite-dark";

View file

@ -7,11 +7,11 @@
"i8042.dumbkbd"
"xe.enable_psr=0"
];
# services.udev.extraHwdb = ''
# evdev:name:BLTP7853:00 347D:7853 Touchpad:*
# ID_INPUT_TOUCHPAD=1
# ID_BUS=i2c
# ID_INTEGRATION=internal
# ID_INPUT_TOUCHPAD_INTEGRATION=internal
# '';
services.udev.extraHwdb = ''
evdev:name:BLTP7853:00 347D:7853 Touchpad:*
ID_INPUT_TOUCHPAD=1
ID_BUS=i2c
ID_INTEGRATION=internal
ID_INPUT_TOUCHPAD_INTEGRATION=internal
'';
}

View file

@ -29,6 +29,7 @@
passthru.providedSessions = [ "scroll" ];
});
inherit (inputs.awww.packages.${final.stdenv.hostPlatform.system}) awww;
inherit (inputs.nixpkgs-new-libinput.legacyPackages.${final.stdenv.hostPlatform.system}) libinput;
};
inherit (inputs.niri.overlays) niri;