nixpkgs/nixos/modules/services/misc/logkeys.nix

24 lines
498 B
Nix
Raw Normal View History

2017-12-23 00:08:05 +00:00
{ config, lib, pkgs, ... }:
2017-04-25 23:53:50 +01:00
with lib;
let
cfg = config.services.logkeys;
in {
options.services.logkeys = {
enable = mkEnableOption "logkeys service";
};
config = mkIf cfg.enable {
systemd.services.logkeys = {
description = "LogKeys Keylogger Daemon";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.logkeys}/bin/logkeys -s";
ExecStop = "${pkgs.logkeys}/bin/logkeys -k";
Type = "forking";
};
};
};
}