l 2: add screenlock
This commit is contained in:
parent
f216392665
commit
a700fc2a34
17
lass/2configs/screenlock.nix
Normal file
17
lass/2configs/screenlock.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
systemd.services.screenlock = {
|
||||
before = [ "sleep.target" ];
|
||||
wantedBy = [ "sleep.target" ];
|
||||
environment = {
|
||||
DISPLAY = ":${toString config.services.xserver.display}";
|
||||
};
|
||||
serviceConfig = {
|
||||
SyslogIdentifier = "screenlock";
|
||||
ExecStart = "${pkgs.i3lock}/bin/i3lock -i /var/lib/wallpaper/wallpaper -f";
|
||||
Type = "forking";
|
||||
User = "lass";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user