18 lines
421 B
Nix
18 lines
421 B
Nix
|
{ 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";
|
||
|
};
|
||
|
};
|
||
|
}
|