Previously, empty lines in the keys would be interpreted as a recipient key, leading to the error message age: Error: unknown recipient type: "". This is easy to do if you keep your ssh keys in separate files then add them to secrets.nix using builtins.readFile, since editors like vim will add an invisible newline to the end of every file. (unless you set noeol)
Previously, empty lines in the keys would be interpreted as a recipient key, leading to the error message
age: Error: unknown recipient type: ""
. This is easy to do if you keep your ssh keys in separate files then add them to secrets.nix usingbuiltins.readFile
, since editors like vim will add an invisible newline to the end of every file. (unless you set noeol)This fixes the issue by ignoring empty lines.