19 lines
435 B
Nix
19 lines
435 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.local.window-manager.hyprland;
|
||
|
in
|
||
|
{
|
||
|
options.local.lockscreen.waylock = with lib; {
|
||
|
enable = mkEnableOption "waylock";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
environment.systemPackages = [ pkgs.unstable.waylock ];
|
||
|
security.pam.services.waylock .text = ''
|
||
|
auth required pam_unix.so try_first_pass nullok
|
||
|
auth optional pam_permit.so
|
||
|
'';
|
||
|
};
|
||
|
}
|