screen-locker: Configure betterlockscreen
This commit is contained in:
parent
31952a940b
commit
e9f16c7c27
2 changed files with 11 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
|||
./services/dunst
|
||||
./services/udiskie
|
||||
./services/picom
|
||||
./services/screen-locker
|
||||
];
|
||||
|
||||
home = {
|
||||
|
|
|
|||
10
home/alex/services/screen-locker/default.nix
Normal file
10
home/alex/services/screen-locker/default.nix
Normal 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" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue