Zpkgs tv github-known_hosts: init
This commit is contained in:
parent
c7acf4bf2a
commit
9736af46c0
@ -3,5 +3,6 @@
|
||||
pkgs //
|
||||
{
|
||||
dic = pkgs.callPackage ./dic.nix {};
|
||||
github-known_hosts = pkgs.callPackage ./github-known_hosts.nix {};
|
||||
much = pkgs.callPackage ./much.nix {};
|
||||
}
|
||||
|
13
Zpkgs/tv/github-known_hosts.nix
Normal file
13
Zpkgs/tv/github-known_hosts.nix
Normal file
@ -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))
|
1
Zpubkeys/github.ssh.pub
Normal file
1
Zpubkeys/github.ssh.pub
Normal file
@ -0,0 +1 @@
|
||||
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
|
Loading…
Reference in New Issue
Block a user