diff options
author | lassulus <lassulus@lassul.us> | 2022-03-09 14:47:20 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-03-09 15:11:01 +0100 |
commit | 236a731da065014c4fb314566d31bf96da4ae759 (patch) | |
tree | 112fde7facb194d6026acee4c010d1961f36fef5 /nixos/modules/services/security/tor.nix | |
parent | c8b5c9526415905e90e3a64586ebecc55a2827dd (diff) | |
download | nixpkgs-236a731da065014c4fb314566d31bf96da4ae759.tar nixpkgs-236a731da065014c4fb314566d31bf96da4ae759.tar.gz nixpkgs-236a731da065014c4fb314566d31bf96da4ae759.tar.bz2 nixpkgs-236a731da065014c4fb314566d31bf96da4ae759.tar.lz nixpkgs-236a731da065014c4fb314566d31bf96da4ae759.tar.xz nixpkgs-236a731da065014c4fb314566d31bf96da4ae759.tar.zst nixpkgs-236a731da065014c4fb314566d31bf96da4ae759.zip |
nixos/tor: admit newlines in secret key
Diffstat (limited to 'nixos/modules/services/security/tor.nix')
-rw-r--r-- | nixos/modules/services/security/tor.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/security/tor.nix b/nixos/modules/services/security/tor.nix index cafb44e1242..3bf70c4aa4f 100644 --- a/nixos/modules/services/security/tor.nix +++ b/nixos/modules/services/security/tor.nix @@ -962,7 +962,7 @@ in '') onion.authorizedClients ++ optional (onion.secretKey != null) '' install -d -o tor -g tor -m 0700 ${escapeShellArg onion.path} - key="$(cut -f1 -d: ${escapeShellArg onion.secretKey})" + key="$(cut -f1 -d: ${escapeShellArg onion.secretKey} | head -1)" case "$key" in ("== ed25519v"*"-secret") install -o tor -g tor -m 0400 ${escapeShellArg onion.secretKey} ${escapeShellArg onion.path}/hs_ed25519_secret_key;; |