diff options
author | makefu <github@syntax-fehler.de> | 2015-07-24 13:28:35 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-07-24 13:28:35 +0200 |
commit | 2cecdcd6bbf749f4752a949645a9193ab61da9c6 (patch) | |
tree | 39ada4548a0aecb8ef85344f2d86bafd7b9bede1 /Zpkgs/krebs/github-known_hosts.nix | |
parent | dfe10c84047ab8e684da8b3567a04fca338036c3 (diff) | |
parent | ee52522cc139670c3eeaeeb462dff98ea870d2e4 (diff) |
Merge branch 'master' of http://cgit.cd/stockholm
Diffstat (limited to 'Zpkgs/krebs/github-known_hosts.nix')
-rw-r--r-- | Zpkgs/krebs/github-known_hosts.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zpkgs/krebs/github-known_hosts.nix b/Zpkgs/krebs/github-known_hosts.nix new file mode 100644 index 000000000..302fdd8d5 --- /dev/null +++ b/Zpkgs/krebs/github-known_hosts.nix @@ -0,0 +1,13 @@ +{ lib, ... }: + +with builtins; +with lib; + +let + github-pubkey = removeSuffix "\n" (readFile ../../Zpubkeys/github.ssh.pub); +in + +toFile "github-known_hosts" + (concatMapStrings + (i: "github.com,192.30.252.${toString i} ${github-pubkey}\n") + (range 0 255)) |