Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit703de1ebcc33b6868093f61cdcac3a38c688bade (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-09-25 14:21:13 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-09-25 14:21:13 +0300
Filesc77a1dfb0a079a337706af0098926a06994ec7bf
nix-703de1ebcc33b6868093f61cdcac3a38c688bade.tar
nix-703de1ebcc33b6868093f61cdcac3a38c688bade.tar.gz
nix-703de1ebcc33b6868093f61cdcac3a38c688bade.zip
Parentf72a0f404f9e8a14ced725449f206bdc63c0d8d4 (diff)
[services] Fixed xautolock not working due to PATH problems
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 = {