feat[client]: add swaylock

This commit is contained in:
Leon Schwarzäugl 2025-10-11 21:58:41 +02:00
parent f02f26636e
commit ca9e922e6e
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
3 changed files with 51 additions and 2 deletions

View file

@ -0,0 +1,21 @@
{ lib, config, pkgs, ... }:
let
moduleName = "swaylock";
in
{
options.swarselmodules.${moduleName} = lib.mkEnableOption "enable ${moduleName} and settings";
config = lib.mkIf config.swarselmodules.${moduleName} {
programs.${moduleName} = {
enable = true;
package = pkgs.swaylock-effects;
settings = {
screenshots = true;
clock = true;
effect-blur = "7x5";
effect-vignette = "0.5:0.5";
fade-in = "0.2";
};
};
};
}