networking.wireguard...publicKey fails on newlines #166201
Labels
0.kind: bug
Something is broken
2.status: stale
https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Describe the bug
If a
networking.wireguard.interfaces.<name>.peers.<peer-index>.publicKey
contains newlines, e.g. when using= builtins.readFile pubkey
, this bit of codein nixos/modules/services/networking/wireguard.nix doesn't substitute the newline, and nix fails with an error like "store path contains illegal character ' '".
Steps To Reproduce
Steps to reproduce the behavior:
...publicKey = "\n"
Expected behavior
newline is replaced with some useful character
Notify maintainers
@grahamc maybe
The text was updated successfully, but these errors were encountered: