Skip to content

Instantly share code, notes, and snippets.

@pirey
Created June 5, 2023 17:39
Show Gist options
  • Save pirey/b901fbd13388e5851ffea53a45ce1362 to your computer and use it in GitHub Desktop.
Save pirey/b901fbd13388e5851ffea53a45ce1362 to your computer and use it in GitHub Desktop.
create service in nixos configuration
# https://www.reddit.com/r/NixOS/comments/mwbr8t/comment/gvhm2mh/?utm_source=share&utm_medium=web2x&context=3
systemd.services.touchegg = {
enable = true;
description = "Touchégg. The daemon.";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
Type = "simple";
Group = "input";
Restart = "on-failure";
RestartSec = 5;
ExecStart = "${pkgs.touchegg}/bin/touchegg --daemon";
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment