Merge pull request #28927 from xtruder/nixos/logkeys/init
logkeys module: init
This commit is contained in:
commit
1adaad1371
@ -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
|
||||
|
23
nixos/modules/services/misc/logkeys.nix
Normal file
23
nixos/modules/services/misc/logkeys.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user