Skip to content

Commit

Permalink
inputplumber: init at 0.35.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowApex committed Sep 29, 2024
1 parent 13dd638 commit a198f34
Show file tree
Hide file tree
Showing 6 changed files with 2,303 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19159,6 +19159,12 @@
githubId = 18403034;
name = "Shaddy";
};
shadowapex = {
email = "shadowapex@gmail.com";
github = "ShadowApex";
githubId = 376460;
name = "William Edwards";
};
shadowrz = {
email = "shadowrz+nixpkgs@disroot.org";
matrix = "@ShadowRZ:matrixim.cc";
Expand Down
2 changes: 2 additions & 0 deletions nixos/doc/manual/release-notes/rl-2411.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@

- [Immersed VR](https://immersed.com/), a closed-source coworking platform. Available as [programs.immersed-vr](#opt-programs.immersed-vr.enable).

- [InputPlumber](https://github.com/ShadowBlip/InputPlumber/), an open source input router and remapper daemon for Linux. Available as [services.inputplumber](#opt-services.inputplumber.enable).

- [HomeBox](https://github.com/sysadminsmedia/homebox): the inventory and organization system built for the Home User. Available as [services.homebox](#opt-services.homebox.enable).

- [matrix-hookshot](https://matrix-org.github.io/matrix-hookshot), a Matrix bot for connecting to external services. Available as [services.matrix-hookshot](#opt-services.matrix-hookshot.enable).
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,7 @@
./services/hardware/handheld-daemon.nix
./services/hardware/hddfancontrol.nix
./services/hardware/illum.nix
./services/hardware/inputplumber.nix
./services/hardware/interception-tools.nix
./services/hardware/iptsd.nix
./services/hardware/irqbalance.nix
Expand Down
38 changes: 38 additions & 0 deletions nixos/modules/services/hardware/inputplumber.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
config,
lib,
pkgs,
...
}:

with lib;
let
cfg = config.services.inputplumber;
in
{
options.services.inputplumber = {
enable = mkEnableOption "InputPlumber";
package = mkPackageOption pkgs "inputplumber" { };
};

config = mkIf cfg.enable {
environment.systemPackages = [ cfg.package ];

systemd.services.inputplumber = {
description = "InputPlumber Service";
wantedBy = [ "multi-user.target" ];
environment = {
XDG_DATA_DIRS = "/run/current-system/sw/share";
};
restartIfChanged = true;

serviceConfig = {
ExecStart = "${lib.getExe cfg.package}";
Restart = "on-failure";
RestartSec = "5";
};
};
};

meta.maintainers = with maintainers; [ shadowapex ];
}
Loading

0 comments on commit a198f34

Please sign in to comment.