mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
ef176dcf7e
conversions were done using https://github.com/pennae/nix-doc-munge using (probably) rev f34e145 running nix-doc-munge nixos/**/*.nix nix-doc-munge --import nixos/**/*.nix the tool ensures that only changes that could affect the generated manual *but don't* are committed, other changes require manual review and are discarded.
39 lines
875 B
Nix
39 lines
875 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let cfg = config.services.touchegg;
|
|
|
|
in {
|
|
meta = {
|
|
maintainers = teams.pantheon.members;
|
|
};
|
|
|
|
###### interface
|
|
options.services.touchegg = {
|
|
enable = mkEnableOption (lib.mdDoc "touchegg, a multi-touch gesture recognizer");
|
|
|
|
package = mkOption {
|
|
type = types.package;
|
|
default = pkgs.touchegg;
|
|
defaultText = literalExpression "pkgs.touchegg";
|
|
description = lib.mdDoc "touchegg derivation to use.";
|
|
};
|
|
};
|
|
|
|
###### 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 ];
|
|
};
|
|
}
|