Codify gnome extensions

This commit is contained in:
Dave Gallant
2022-10-31 00:26:07 -04:00
parent 4a27b993e2
commit c08f616f4d
2 changed files with 10 additions and 21 deletions

View File

@@ -1,18 +0,0 @@
{
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";
};
};
}