Summary Files Commits Branches @commit @diff @stats
path: root / services.nix
diff options
context:
space:
mode:
1 files changed, 14 insertions, 1 deletions
-rw-r--r--services.nix15
diff --git a/services.nix b/services.nix
index e7f89cf..f185411 100644
--- a/services.nix
+++ b/services.nix
@@ -17,6 +17,19 @@
TimeoutStopSec = 10;
};
};
+
+ };
+
+ systemd.services = {
+ lockscreen = {
+ wantedBy = [ "sleep.target" ];
+ before = [ "suspend.target" ];
+ serviceConfig = {
+ User = "kamen";
+ Environment = [ "DISPLAY=:0" "PATH=/run/current-system/sw/bin" "DBUS_SESSION_BUS_ADDRESS=\"unix:path=/run/user/1000/bus\"" ];
+ ExecStart = "/home/kamen/.a/sys/lock.sh";
+ };
+ };
};
services = {
@@ -73,7 +86,7 @@
enable = true;
time = 15;
locker = "/home/kamen/.a/sys/lock.sh";
- extraOptions = [ "-detectsleep" "-lockaftersleep" "-secure" ];
+ extraOptions = [ "-detectsleep" "-secure" ];
};
};
};