Update input-remapper to 2.0.0

This commit is contained in:
Natsu Kagami 2023-06-07 10:48:29 +02:00
parent 20f296dc5e
commit efdd564c65
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51
3 changed files with 16 additions and 2 deletions

View file

@ -114,6 +114,8 @@ in
${builtins.readFile "${pkgs.pantheon.pantheon-agent-polkit}/etc/xdg/autostart/io.elementary.desktop.agent-polkit.desktop"} ${builtins.readFile "${pkgs.pantheon.pantheon-agent-polkit}/etc/xdg/autostart/io.elementary.desktop.agent-polkit.desktop"}
OnlyShowIn=sway; OnlyShowIn=sway;
''; '';
xdg.configFile."autostart/input-remapper-autoload.desktop".source =
"${pkgs.input-remapper}/share/applications/input-remapper-autoload.desktop";
# Multiple screen setup # Multiple screen setup
# services.kanshi = { # services.kanshi = {

View file

@ -43,7 +43,7 @@
services.xserver.libinput.enable = true; services.xserver.libinput.enable = true;
# Keyboard # Keyboard
services.input-remapper.enable = true; services.input-remapper.enable = true;
services.input-remapper.serviceWantedBy = [ "graphical-session.target" ]; services.input-remapper.serviceWantedBy = [ "multi-user.target" ];
hardware.uinput.enable = true; hardware.uinput.enable = true;
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.

View file

@ -17,7 +17,19 @@ let
sources = final.lib.attrsets.filterAttrs (name: f: !(builtins.hasAttr "outputs" f)) inputs; sources = final.lib.attrsets.filterAttrs (name: f: !(builtins.hasAttr "outputs" f)) inputs;
}; };
overlay-versioning = final: prev: { }; overlay-versioning = final: prev: {
input-remapper =
prev.input-remapper.overrideAttrs (oldAttrs: rec {
version = "2.0.0";
name = "input-remapper-${version}";
src = final.fetchFromGitHub {
owner = "sezanzeb";
repo = "input-remapper";
rev = "${version}";
sha256 = "sha256-yQRUhezzI/rz7A+s5O7NGP8DjPzzXA80gIAhhV7mc3w=";
};
});
};
overlay-libs = final: prev: { overlay-libs = final: prev: {
libs.crane = inputs.crane.lib.${prev.system}; libs.crane = inputs.crane.lib.${prev.system};