Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
33 lines
707 B
Nix
33 lines
707 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.services.touchegg;
|
|
|
|
in {
|
|
meta = {
|
|
maintainers = teams.pantheon.members;
|
|
};
|
|
|
|
###### interface
|
|
options.services.touchegg = {
|
|
enable = mkEnableOption "touchegg, a multi-touch gesture recognizer";
|
|
|
|
package = mkPackageOption pkgs "touchegg" { };
|
|
};
|
|
|
|
###### 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 ];
|
|
};
|
|
}
|