nix/home-manager/common/desktops/hyprland/components/swaylock.nix

26 lines
644 B
Nix
Raw Normal View History

2024-05-05 11:30:16 +02:00
{ pkgs, pkgs-unstable, ... }: {
2024-01-03 14:25:06 +01:00
programs.swaylock = {
enable = true;
# swaylock-effects has extra effects like image blur and stuff.
2024-05-05 11:30:16 +02:00
package = pkgs-unstable.swaylock-effects;
2024-01-03 14:25:06 +01:00
settings = {
# All <color> options are of the form <rrggbb[aa]>.
2024-01-07 04:55:25 +01:00
# font-size = 96;
2024-01-03 14:25:06 +01:00
show-failed-attempts = true;
2024-01-07 14:41:46 +01:00
effect-blur = "20x8";
2024-01-03 14:25:06 +01:00
screenshots = true;
clock = true;
timestr = "%R";
datestr = "%a, %b %d";
grace = 5;
indicator = true;
indicator-radius = "130";
indicator-thickness = "12";
indicator-caps-lock = true;
disable-caps-lock-text = false;
};
};
}