0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-20 00:50:38 +03:00
nixpkgs/nixos/modules/services/x11/touchegg.nix

41 lines
717 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
...
}:
2021-08-07 12:04:39 +08:00
with lib;
let
cfg = config.services.touchegg;
2021-08-07 12:04:39 +08:00
in
{
2021-08-07 12:04:39 +08:00
meta = {
maintainers = teams.pantheon.members;
};
###### interface
options.services.touchegg = {
enable = mkEnableOption "touchegg, a multi-touch gesture recognizer";
2021-08-07 12:04:39 +08:00
package = mkPackageOption pkgs "touchegg" { };
2021-08-07 12:04:39 +08:00
};
###### implementation
config = mkIf cfg.enable {
systemd.services.touchegg = {
description = "Touchegg Daemon";
serviceConfig = {
Type = "simple";
ExecStart = "${cfg.package}/bin/touchegg --daemon";
Restart = "on-failure";
};
wantedBy = [ "multi-user.target" ];
};
environment.systemPackages = [ cfg.package ];
};
}