lol

nixos/touchegg: init

+39
+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 + ./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 + { config, lib, pkgs, ... }: 2 + 3 + with lib; 4 + 5 + let cfg = config.services.touchegg; 6 + 7 + in { 8 + meta = { 9 + maintainers = teams.pantheon.members; 10 + }; 11 + 12 + ###### interface 13 + options.services.touchegg = { 14 + enable = mkEnableOption "touchegg, a multi-touch gesture recognizer"; 15 + 16 + package = mkOption { 17 + type = types.package; 18 + default = pkgs.touchegg; 19 + defaultText = "pkgs.touchegg"; 20 + description = "touchegg derivation to use."; 21 + }; 22 + }; 23 + 24 + ###### implementation 25 + config = mkIf cfg.enable { 26 + systemd.services.touchegg = { 27 + description = "Touchegg Daemon"; 28 + serviceConfig = { 29 + Type = "simple"; 30 + ExecStart = "${cfg.package}/bin/touchegg --daemon"; 31 + Restart = "on-failure"; 32 + }; 33 + wantedBy = [ "multi-user.target" ]; 34 + }; 35 + 36 + environment.systemPackages = [ cfg.package ]; 37 + }; 38 + }