{ pkgs, ... }: { programs.swaylock = { enable = true; package = pkgs.swaylock-effects; settings = { clock = true; indicator = true; effect-pixelate = 10; }; }; home.file.".config/swaylock/swaylock.sh" = { executable = true; text = '' #!/bin/env bash image=`fd . ~/Pictures/Wallpaper --type f | sort -R | tail -1` swaylock --image "$image" ''; }; }