2015-07-19 14:01:23 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
with builtins;
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
2015-08-28 22:48:37 +00:00
|
|
|
github-pubkey = removeSuffix "\n" (readFile ./github.ssh.pub);
|
2015-07-19 14:01:23 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
toFile "github-known_hosts"
|
|
|
|
(concatMapStrings
|
|
|
|
(i: "github.com,192.30.252.${toString i} ${github-pubkey}\n")
|
|
|
|
(range 0 255))
|