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;
|
2024-06-01 03:42:04 +03:00
|
|
|
u2fSupport = lib.mkDefault config.security.pam.u2f.enable;
|
2024-05-18 15:42:44 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.xss-lock.enable = true;
|
|
|
|
};
|
|
|
|
}
|