nixos/home/swaylock/default.nix
Evie Litherland-Smith 8ca2053944 Reorganise a lot of things, clean up some files
Pull program expressions inside hyprland directory (e.g. rofi, waybar,
etc...) up one level.

Convert everything into package-name/default.nix format for
consistency

Move common home imports from flake.nix into hyprland/default.nix,
flake.nix now only defaults into importing hyprland, to be consistent
with how system imports work

Remove some old files: calendar and contact setup, sweet theme pkgs

Move xdg.configFile expressions from home/default.nix into a
config/default.nix, keeping the files to be linked in the config dir
as well (still need to do ipython though)
2024-01-28 12:01:18 +00:00

21 lines
575 B
Nix

{ 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";
grace = 0.5;
fade-in = 0.2;
};
};
}