diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-27 23:09:21 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-09-27 23:09:21 +0200 |
commit | 05438304665bdaaf37ba4c148ab07bdf8fd3fb03 (patch) | |
tree | a8f6f42f1d229b7169a9265261bfe6d5a32bcafd | |
parent | 3c33dd66ea59e9b01b05c515c22df11bcaf94194 (diff) | |
download | nixos-05438304665bdaaf37ba4c148ab07bdf8fd3fb03.tar nixos-05438304665bdaaf37ba4c148ab07bdf8fd3fb03.tar.gz nixos-05438304665bdaaf37ba4c148ab07bdf8fd3fb03.tar.bz2 nixos-05438304665bdaaf37ba4c148ab07bdf8fd3fb03.tar.xz nixos-05438304665bdaaf37ba4c148ab07bdf8fd3fb03.zip |
build-server: ...
-rw-r--r-- | system-profiles/build-server/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system-profiles/build-server/default.nix b/system-profiles/build-server/default.nix index 9c821f64..d0bfaf10 100644 --- a/system-profiles/build-server/default.nix +++ b/system-profiles/build-server/default.nix | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | users.users.nix-ssh-builder.openssh.authorizedKeys.keys = | 29 | users.users.nix-ssh-builder.openssh.authorizedKeys.keys = |
30 | let | 30 | let |
31 | importKeys = dir: lib.attrValues (customUtils.mapFilterAttrs (_: v: v == "directory") (n: _: lib.nameValuePair n (importKeys' dir n)) (builtins.readDir dir)); | 31 | importKeys = dir: lib.attrValues (customUtils.mapFilterAttrs (_: v: v != null) (n: v: lib.nameValuePair n (if v == "directory" then importKeys' dir n else null)) (builtins.readDir dir)); |
32 | importKeys' = dir: host: builtins.readFile (dir + "/${host}/public"); | 32 | importKeys' = dir: host: builtins.readFile (dir + "/${host}/public"); |
33 | in importKeys ./clients; | 33 | in importKeys ./clients; |
34 | }; | 34 | }; |