Files
nixos-config/home/services/xscreenlocker.nix
2024-03-07 18:48:50 +01:00

20 lines
456 B
Nix

{ pkgs, ... }:
let images = pkgs.callPackage ../extras/images.nix { };
in {
home.packages = with pkgs; [ xsecurelock ];
home.sessionVariables = rec {
XSECURELOCK_COMPOSITE_OBSCURER = 0;
XSECURELOCK_PASSWORD_PROMPT = "asterisks";
};
services.screen-locker = {
enable = true;
inactiveInterval = 1;
lockCmd = "${pkgs.xsecurelock}/bin/xsecurelock";
xautolock.extraOptions = [ "Xautolock.killer: systemctl suspend" ];
};
}