summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-01-18 17:37:59 +0100
committerlassulus <lass@lassul.us>2017-01-18 17:37:59 +0100
commita700fc2a343e8591172d6ce236d53f656e4a0643 (patch)
treefde5bc831fd2736d8886a16d652fdba79e1f28d9 /lass/2configs
parentf216392665662ba375a657ae2431b70bb1ab63cc (diff)
l 2: add screenlock
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/screenlock.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/lass/2configs/screenlock.nix b/lass/2configs/screenlock.nix
new file mode 100644
index 000000000..237127f69
--- /dev/null
+++ b/lass/2configs/screenlock.nix
@@ -0,0 +1,17 @@
+{ 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";
+ };
+ };
+}