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