summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/github-known_hosts/default.nix
blob: fe5efe41310a7e024a3025fff28882c65b63b072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ lib, ... }:

with builtins;
with lib;

let
  github-pubkey = removeSuffix "\n" (readFile ./github.ssh.pub);
in

toFile "github-known_hosts"
  (concatMapStrings
    (i: "github.com,192.30.252.${toString i} ${github-pubkey}\n")
    (range 0 255))