diff options
| author | Skullheadx <admonty1@protonmail.com> | 2026-04-26 00:31:14 -0400 |
|---|---|---|
| committer | Skullheadx <admonty1@protonmail.com> | 2026-04-26 00:31:14 -0400 |
| commit | ec6599c8e939f175c00ef70b57982182178e2618 (patch) | |
| tree | 13e5acb5906b2f4efee07dfcec8e282a1a7db3e1 /lockscreen.nix | |
| parent | add special args (diff) | |
| download | nixos-ec6599c8e939f175c00ef70b57982182178e2618.tar.gz nixos-ec6599c8e939f175c00ef70b57982182178e2618.tar.bz2 nixos-ec6599c8e939f175c00ef70b57982182178e2618.zip | |
modularize lockscreen
Diffstat (limited to 'lockscreen.nix')
| -rw-r--r-- | lockscreen.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lockscreen.nix b/lockscreen.nix new file mode 100644 index 0000000..019ec8e --- /dev/null +++ b/lockscreen.nix @@ -0,0 +1,25 @@ +{ config, pkgs, ... }: +{ + + # List packages installed in system profile. To search, run: + # $ nix search wget + environment.systemPackages = with pkgs; [ + betterlockscreen + lock-screen + ]; + + programs.i3lock = { + enable = true; + package = pkgs.i3lock-color; + }; + security.pam.services.betterlockscreen = { }; + services.xserver = { + xautolock = { + enable = true; + enableNotifier = true; + notifier = "${pkgs.dunst}/bin/notify-send 'Locking in 10 seconds'"; + locker = "${pkgs.betterlockscreen}/bin/betterlockscreen -l dimblur"; + }; + }; + +} |
