system/modules/nixos/configs/lockscreen/i3lock.nix

20 lines
359 B
Nix
Raw Permalink Normal View History

2024-05-18 15:42:44 +03:00
{ config, lib, ... }:
let
cfg = config.local.lockscreen.i3lock;
in
{
options.local.lockscreen.i3lock = with lib; {
enable = mkEnableOption "i3lock";
};
config = lib.mkIf cfg.enable {
programs.i3lock = {
enable = true;
u2fSupport = lib.mkDefault config.security.pam.u2f.enable;
2024-05-18 15:42:44 +03:00
};
programs.xss-lock.enable = true;
};
}