logkeys module: init

wip/yesman
The Admin 7 years ago committed by Jaka Hudoklin
parent 101ccc0629
commit cdb0038052
  1. 1
      nixos/modules/module-list.nix
  2. 23
      nixos/modules/services/misc/logkeys.nix

@ -304,6 +304,7 @@
#./services/misc/ihaskell.nix
./services/misc/irkerd.nix
./services/misc/jackett.nix
./services/misc/logkeys.nix
./services/misc/leaps.nix
./services/misc/mantisbt.nix
./services/misc/mathics.nix

@ -0,0 +1,23 @@
{ config, lib, ... }:
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";
};
};
};
}
Loading…
Cancel
Save