summaryrefslogtreecommitdiffstats
path: root/Zpkgs/krebs/github-known_hosts.nix
blob: 302fdd8d5a0802a73b3f526c2e26a588f7aa788f (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 ../../Zpubkeys/github.ssh.pub);
in

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