nixos/home/swaylock/default.nix

20 lines
556 B
Nix
Raw Normal View History

{ config, pkgs, ... }: {
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
# Settings are specifically for swaylock-effects
settings = {
indicator-radius = 100;
indicator-thickness = 10;
indicator-caps-lock = true;
ignore-empty-password = true;
show-failed-attempts = true;
effect-blur =
with config.wayland.windowManager.hyprland.settings.decoration.blur;
"${toString size}x${toString passes}";
effect-vignette = "0.5:0.5";
fade-in = 0.2;
};
};
}