about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--modules/laminar.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/laminar.nix b/modules/laminar.nix
index 7984c5c..02944f3 100644
--- a/modules/laminar.nix
+++ b/modules/laminar.nix
@@ -105,10 +105,14 @@ in
       wantedBy = [ "multi-user.target" ];
       after = [ "network.target" ];
       inherit (cfg) path;
+      environment = {
+        XDG_RUNTIME_DIR = "%t/laminar";
+      };
       serviceConfig = {
         User = cfg.user;
         Group = cfg.group;
         ExecStart = "${cfg.package}/bin/laminard -v";
+        RuntimeDirectory = "laminar";
         EnvironmentFile = pkgs.writeText "laminar.conf" ''
           LAMINAR_HOME=${cfg.homeDir}
           LAMINAR_BIND_HTTP=${cfg.settings.bindHTTP}