summaryrefslogtreecommitdiffstats
path: root/lockscreen.nix
diff options
context:
space:
mode:
authorSkullheadx <admonty1@protonmail.com>2026-04-26 00:31:14 -0400
committerSkullheadx <admonty1@protonmail.com>2026-04-26 00:31:14 -0400
commitec6599c8e939f175c00ef70b57982182178e2618 (patch)
tree13e5acb5906b2f4efee07dfcec8e282a1a7db3e1 /lockscreen.nix
parentadd special args (diff)
downloadnixos-ec6599c8e939f175c00ef70b57982182178e2618.tar.gz
nixos-ec6599c8e939f175c00ef70b57982182178e2618.tar.bz2
nixos-ec6599c8e939f175c00ef70b57982182178e2618.zip
modularize lockscreen
Diffstat (limited to 'lockscreen.nix')
-rw-r--r--lockscreen.nix25
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";
+ };
+ };
+
+}