about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-24 20:33:34 +0200
committerAlan Pearce2024-06-24 20:33:34 +0200
commit9f688ea9b483f4b508c1c238b7761de21989a8c3 (patch)
tree061b330df468ea73cd92e456f8857c910f094a8d
parent1257f61075c00d7b77590261735d811613210aa0 (diff)
downloadnix-packages-9f688ea9b483f4b508c1c238b7761de21989a8c3.tar.lz
nix-packages-9f688ea9b483f4b508c1c238b7761de21989a8c3.tar.zst
nix-packages-9f688ea9b483f4b508c1c238b7761de21989a8c3.zip
laminar: enable running skopeo
-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}