mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat[client]: add swaylock
This commit is contained in:
parent
f02f26636e
commit
ca9e922e6e
3 changed files with 51 additions and 2 deletions
|
|
@ -4661,7 +4661,7 @@ Mostly used to install some compilers and lsp's that I want to have available wh
|
||||||
|
|
||||||
# pinentry
|
# pinentry
|
||||||
dbus
|
dbus
|
||||||
swaylock-effects
|
# swaylock-effects
|
||||||
syncthingtray-minimal
|
syncthingtray-minimal
|
||||||
swayosd
|
swayosd
|
||||||
|
|
||||||
|
|
@ -14711,6 +14711,34 @@ This service changes the screen hue at night. I am not sure if that really does
|
||||||
}
|
}
|
||||||
#+end_src
|
#+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
|
*** Server
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: h:b1a00339-6e9b-4ae4-b5dc-6fd5669a2ddb
|
:CUSTOM_ID: h:b1a00339-6e9b-4ae4-b5dc-6fd5669a2ddb
|
||||||
|
|
|
||||||
21
modules/home/common/swaylock.nix
Normal file
21
modules/home/common/swaylock.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
# pinentry
|
# pinentry
|
||||||
dbus
|
dbus
|
||||||
swaylock-effects
|
# swaylock-effects
|
||||||
syncthingtray-minimal
|
syncthingtray-minimal
|
||||||
swayosd
|
swayosd
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue