Files
nix-config/services/xautolock/default.nix
Dave Gallant 3c9b189021 Add xautolock
2022-05-29 22:51:49 -04:00

19 lines
388 B
Nix

{
config,
pkgs,
...
}: let
in {
systemd.services.xautolock = {
description = "Lock the screen automatically after a timeout";
wantedBy = ["graphical.target"];
serviceConfig = {
Type = "simple";
User = "dave";
Environment = "DISPLAY=:0";
ExecStart = "${pkgs.xautolock}/bin/xautolock -time 1 -detectsleep -locker /home/dave/lock";
};
};
}