diff options
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/module.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nix/module.nix b/nix/module.nix index 60b8d5f..d820b67 100644 --- a/nix/module.nix +++ b/nix/module.nix | |||
| @@ -245,8 +245,7 @@ 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 | # Use tr to remove trailing newline which would invalidate the nsec | 248 | "${pkgs.bash}/bin/bash -c '${ngit-grasp}/bin/ngit-grasp --relay-owner-nsec \"$(cat ${cfg.relayOwnerNsecFile})\"'" |
| 249 | "${pkgs.bash}/bin/bash -c '${ngit-grasp}/bin/ngit-grasp --relay-owner-nsec \"$(cat ${cfg.relayOwnerNsecFile} | tr -d \"\\n\")\"'" | ||
| 250 | else | 249 | else |
| 251 | # Let ngit-grasp auto-generate nsec in .relay-owner.nsec file in dataDir | 250 | # Let ngit-grasp auto-generate nsec in .relay-owner.nsec file in dataDir |
| 252 | "${ngit-grasp}/bin/ngit-grasp"; | 251 | "${ngit-grasp}/bin/ngit-grasp"; |