mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 20:14:08 +09:00
swaylock
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.my.applications.swaylock.system;
|
||||
in
|
||||
{
|
||||
options.my.applications.swaylock.system = {
|
||||
enable = lib.mkEnableOption "swaylock system configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.systemd-lock-handler.enable = true;
|
||||
|
||||
# Screen unlocking deliberately uses passwords only. Fingerprints remain
|
||||
# available to explicitly enabled PAM services such as sudo and polkit.
|
||||
security.pam.services.swaylock.fprintAuth = false;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user