infra/secrets.nix
lewo fc1c99279b
secrets: only remove suffix "\n" for the buildkite token ()
The SSH private key file needs to have a last empty new
line. Otherwise, SSH fails with:

    Load key "/path/to/key": invalid format
2020-05-01 16:44:05 +00:00

7 lines
179 B
Nix

with builtins;
let
readSecret = name: readFile (./secrets + "/${name}");
in
mapAttrs
(name: type: if type != "directory" then readSecret name else null)
(readDir ./secrets)