add swaylock

This commit is contained in:
Vinzenz Schroeter 2025-03-17 21:09:27 +01:00
parent e2b8dd3192
commit c3c2c1ad6d
5 changed files with 25 additions and 3 deletions

View file

@ -28,6 +28,7 @@
./gnome.nix
./niri.nix
./ssh.nix
./swaylock.nix
./vscode.nix
./waybar.nix
./zsh.nix

View file

@ -7,7 +7,6 @@
xwayland-satellite
alacritty
fuzzel
swaylock
];
qt.style = {

21
home/vinzenz/swaylock.nix Normal file
View file

@ -0,0 +1,21 @@
# based on https://codeberg.org/kiara/cfg/src/commit/b9c472acd78c9c08dfe8b6a643c5c82cc5828433/home-manager/kiara/swaylock.nix#
{ pkgs, ... }:
{
programs.swaylock = {
enable = true;
package = pkgs.swaylock-effects;
# https://github.com/jirutka/swaylock-effects/blob/master/swaylock.1.scd
settings = {
screenshot = true;
effect-blur = "9x9";
effect-vignette = "0.5:0.5";
fade-in = 0.5;
font-size = 75;
indicator-caps-lock = true;
clock = true;
indicator-radius = 400;
show-failed-attempts = true;
ignore-empty-password = true;
};
};
}

View file

@ -3,10 +3,9 @@
home.packages = with pkgs; [
waybar
playerctl
cava
];
programs.cava.enable = true;
programs.waybar = {
enable = true;
settings = {

View file

@ -15,6 +15,8 @@
tldr
neofetch
nix-output-monitor
];
};