Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 4 insertions, 0 deletions
-rw-r--r--services.nix4
diff --git a/services.nix b/services.nix
index cbaced6..954d3e1 100644
--- a/services.nix
+++ b/services.nix
@@ -18,6 +18,10 @@
};
};
+
+ # This is kinda gross, because the xautolock service is already defined and configured
+ # inside services.xserver.xautolock, but it's the only way I know
+ xautolock.serviceConfig.Environment = [ "DISPLAY=:0" "PATH=/run/current-system/sw/bin" ];
};
systemd.services = {