8 cfg = config.services.systemd-lock-handler;
9 inherit (lib) mkIf mkEnableOption mkPackageOption;
12 options.services.systemd-lock-handler = {
13 enable = mkEnableOption "systemd-lock-handler";
14 package = mkPackageOption pkgs "systemd-lock-handler" { };
17 config = mkIf cfg.enable {
18 systemd.packages = [ cfg.package ];
20 # https://github.com/NixOS/nixpkgs/issues/81138
21 systemd.user.services.systemd-lock-handler.wantedBy = [ "default.target" ];
25 maintainers = with lib.maintainers; [ liff ];
26 doc = ./systemd-lock-handler.md;