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

19 lines
356 B
Nix

{ 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.local.yubikey.enable;
};
programs.xss-lock.enable = true;
};
}