diff options
| author | Skullheadx <andrew@andrew-montgomery.dev> | 2026-07-10 15:38:25 -0400 |
|---|---|---|
| committer | Skullheadx <andrew@andrew-montgomery.dev> | 2026-07-20 07:26:34 -0400 |
| commit | 2bbf0a2acd04286029166850c226e8b937e5915f (patch) | |
| tree | c7818cafda92cdd064908a162780b5f90d39f2e2 /lockscreen.nix | |
| parent | add python and imagemagick (diff) | |
| download | nixos-2bbf0a2acd04286029166850c226e8b937e5915f.tar.gz nixos-2bbf0a2acd04286029166850c226e8b937e5915f.tar.bz2 nixos-2bbf0a2acd04286029166850c226e8b937e5915f.zip | |
Revert "try modules"
This reverts commit 3c6ebd9f6cc68733a5c473b4eb1dffcc0d425004.
Diffstat (limited to '')
| -rw-r--r-- | lockscreen.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lockscreen.nix b/lockscreen.nix new file mode 100644 index 0000000..d5b395a --- /dev/null +++ b/lockscreen.nix @@ -0,0 +1,26 @@ +{ + 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"; + }; + }; +} |
