From ca9e922e6e08b98b893bf83e416569e8288b1cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Schwarz=C3=A4ugl?= Date: Sat, 11 Oct 2025 21:58:41 +0200 Subject: [PATCH] feat[client]: add swaylock --- SwarselSystems.org | 30 +++++++++++++++++++++++++++++- modules/home/common/swaylock.nix | 21 +++++++++++++++++++++ modules/nixos/client/packages.nix | 2 +- 3 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 modules/home/common/swaylock.nix diff --git a/SwarselSystems.org b/SwarselSystems.org index 6fd98fd..945af0f 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -4661,7 +4661,7 @@ Mostly used to install some compilers and lsp's that I want to have available wh # pinentry dbus - swaylock-effects + # swaylock-effects syncthingtray-minimal swayosd @@ -14711,6 +14711,34 @@ This service changes the screen hue at night. I am not sure if that really does } #+end_src + +**** swaylock + +#+begin_src nix-ts :tangle modules/home/common/swaylock.nix + { 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"; + }; + }; + }; + + } +#+end_src + + *** Server :PROPERTIES: :CUSTOM_ID: h:b1a00339-6e9b-4ae4-b5dc-6fd5669a2ddb diff --git a/modules/home/common/swaylock.nix b/modules/home/common/swaylock.nix new file mode 100644 index 0000000..a3483af --- /dev/null +++ b/modules/home/common/swaylock.nix @@ -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"; + }; + }; + }; + +} diff --git a/modules/nixos/client/packages.nix b/modules/nixos/client/packages.nix index 2ac4386..153cf90 100644 --- a/modules/nixos/client/packages.nix +++ b/modules/nixos/client/packages.nix @@ -21,7 +21,7 @@ # pinentry dbus - swaylock-effects + # swaylock-effects syncthingtray-minimal swayosd