tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/touchegg: init
Bobby Rong
4 years ago
2478c8bf
fee747f5
+39
2 changed files
expand all
collapse all
unified
split
nixos
modules
module-list.nix
services
x11
touchegg.nix
+1
nixos/modules/module-list.nix
···
1055
1055
./services/x11/gdk-pixbuf.nix
1056
1056
./services/x11/imwheel.nix
1057
1057
./services/x11/redshift.nix
1058
1058
+
./services/x11/touchegg.nix
1058
1059
./services/x11/urserver.nix
1059
1060
./services/x11/urxvtd.nix
1060
1061
./services/x11/window-managers/awesome.nix
+38
nixos/modules/services/x11/touchegg.nix
···
1
1
+
{ config, lib, pkgs, ... }:
2
2
+
3
3
+
with lib;
4
4
+
5
5
+
let cfg = config.services.touchegg;
6
6
+
7
7
+
in {
8
8
+
meta = {
9
9
+
maintainers = teams.pantheon.members;
10
10
+
};
11
11
+
12
12
+
###### interface
13
13
+
options.services.touchegg = {
14
14
+
enable = mkEnableOption "touchegg, a multi-touch gesture recognizer";
15
15
+
16
16
+
package = mkOption {
17
17
+
type = types.package;
18
18
+
default = pkgs.touchegg;
19
19
+
defaultText = "pkgs.touchegg";
20
20
+
description = "touchegg derivation to use.";
21
21
+
};
22
22
+
};
23
23
+
24
24
+
###### implementation
25
25
+
config = mkIf cfg.enable {
26
26
+
systemd.services.touchegg = {
27
27
+
description = "Touchegg Daemon";
28
28
+
serviceConfig = {
29
29
+
Type = "simple";
30
30
+
ExecStart = "${cfg.package}/bin/touchegg --daemon";
31
31
+
Restart = "on-failure";
32
32
+
};
33
33
+
wantedBy = [ "multi-user.target" ];
34
34
+
};
35
35
+
36
36
+
environment.systemPackages = [ cfg.package ];
37
37
+
};
38
38
+
}