
The SSH private key file needs to have a last empty new line. Otherwise, SSH fails with: Load key "/path/to/key": invalid format
7 lines
179 B
Nix
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)
|