screen-locker: Configure betterlockscreen

This commit is contained in:
Alexander Kobjolke 2024-02-20 22:25:03 +01:00
parent 31952a940b
commit e9f16c7c27
2 changed files with 11 additions and 0 deletions

View file

@ -8,6 +8,7 @@
./services/dunst
./services/udiskie
./services/picom
./services/screen-locker
];
home = {

View file

@ -0,0 +1,10 @@
{ config, lib, pkgs, ... }:
{
config.services.screen-locker = {
enable = true;
inactiveInterval = 30;
lockCmd = "${pkgs.betterlockscreen}/bin/betterlockscreen -l dim";
xautolock.extraOptions = [ "Xautolock.killer: systemctl suspend" ];
};
}