stockholm/lass/2configs/screenlock.nix

18 lines
379 B
Nix
Raw Normal View History

2017-01-18 16:37:59 +00:00
{ pkgs, config, ... }:
{
systemd.services.screenlock = {
before = [ "sleep.target" ];
wantedBy = [ "sleep.target" ];
environment = {
2017-02-16 12:15:58 +00:00
DISPLAY = ":0";
2017-01-18 16:37:59 +00:00
};
serviceConfig = {
SyslogIdentifier = "screenlock";
ExecStart = "${pkgs.i3lock}/bin/i3lock -i /var/lib/wallpaper/wallpaper -f";
Type = "forking";
User = "lass";
};
};
}