stockholm/krebs/5pkgs/github-known_hosts/default.nix
tv 22a171f3e0 krebs pkgs += charybdis lentil much
While there, put everything into subdirectories.
2015-08-29 00:36:50 +02:00

14 lines
260 B
Nix

{ 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))