programs: add "waylock"
This commit is contained in:
@@ -86,6 +86,7 @@
|
|||||||
./tor-browser.nix
|
./tor-browser.nix
|
||||||
./tuba.nix
|
./tuba.nix
|
||||||
./vlc.nix
|
./vlc.nix
|
||||||
|
./waylock.nix
|
||||||
./wike.nix
|
./wike.nix
|
||||||
./wine.nix
|
./wine.nix
|
||||||
./wireshark.nix
|
./wireshark.nix
|
||||||
|
12
hosts/common/programs/waylock.nix
Normal file
12
hosts/common/programs/waylock.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# waylock: <https://codeberg.org/ifreund/waylock>
|
||||||
|
# also documented in berbiche NUR: <https://github.com/nix-community/nur-combined/blob/master/repos/berbiche/README.md>
|
||||||
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.sane.programs.waylock;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# without a /etc/pam.d/waylock entry, you may lock but you may never *unlock* ;-)
|
||||||
|
security.pam.services = lib.mkIf cfg.enabled {
|
||||||
|
waylock.unixAuth = true;
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user