Merge pull request #28927 from xtruder/nixos/logkeys/init

logkeys module: init
This commit is contained in:
Jaka Hudoklin 2017-09-16 16:23:13 +02:00 committed by GitHub
commit 1adaad1371
2 changed files with 24 additions and 0 deletions

View file

@ -305,6 +305,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

View file

@ -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";
};
};
};
}