upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nix/module.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nix/module.nix b/nix/module.nix
index d820b67..60b8d5f 100644
--- a/nix/module.nix
+++ b/nix/module.nix
@@ -245,7 +245,8 @@ let
245 # Command to run 245 # Command to run
246 ExecStart = if cfg.relayOwnerNsecFile != null then 246 ExecStart = if cfg.relayOwnerNsecFile != null then
247 # Use nsec from file - need to use shell to read the file 247 # Use nsec from file - need to use shell to read the file
248 "${pkgs.bash}/bin/bash -c '${ngit-grasp}/bin/ngit-grasp --relay-owner-nsec \"$(cat ${cfg.relayOwnerNsecFile})\"'" 248 # Use tr to remove trailing newline which would invalidate the nsec
249 "${pkgs.bash}/bin/bash -c '${ngit-grasp}/bin/ngit-grasp --relay-owner-nsec \"$(cat ${cfg.relayOwnerNsecFile} | tr -d \"\\n\")\"'"
249 else 250 else
250 # Let ngit-grasp auto-generate nsec in .relay-owner.nsec file in dataDir 251 # Let ngit-grasp auto-generate nsec in .relay-owner.nsec file in dataDir
251 "${ngit-grasp}/bin/ngit-grasp"; 252 "${ngit-grasp}/bin/ngit-grasp";