Update swaylock

This commit is contained in:
Nathan McCarty 2023-04-20 16:22:21 -04:00
parent 8a33fff1ba
commit 78d273337f
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 4 additions and 2 deletions

View File

@ -2,14 +2,16 @@
let nathan = config.nathan;
in with lib; {
config = mkIf nathan.programs.swaywm.enable (let
swaylock-package =
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.swaylock-effects;
swaylock-command = ''
${pkgs.swaylock-effects}/bin/swaylock --screenshots --grace 30 --indicator --clock --timestr "%-I:%M:%S %p" --datestr "%A %Y-%M-%d" --effect-blur 20x3'';
${swaylock-package}/bin/swaylock --screenshots --grace 30 --indicator --clock --timestr "%-I:%M:%S %p" --datestr "%A %Y-%M-%d" --effect-blur 20x3'';
layman-package = inputs.self.packages.${pkgs.system}.layman;
in {
home.packages = with pkgs; [
# Locking and display management
wdisplays
swaylock-effects
swaylock-package
swayidle
# Clipboard
wl-clipboard