nixos

NixOS server files. Mirror from https://git.nordgedanken.dev/kubernetes/nixos
git clone git://archive.git.mtrnord.blog/MTRNord/nixos.git
Log | Files | Refs | README

commit e591e37f215c0978c8093cd73fd5d57f1913768b
parent b986199351083d6a952d401acb86e9fb4e451280
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed,  9 Aug 2023 21:18:04 +0200

Write known_hosts

Diffstat:
Mnixos/worker-1/configuration.nix | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix @@ -149,6 +149,15 @@ }; }; + # Write known-hosts + root_known_hosts = pkg.writeText "root_known_hosts" '' + u362507.your-storagebox.de ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5EB5p/5Hp3hGW1oHok+PIOH9Pbn7cnUiGmUEBrCVjnAw+HrKyN8bYVV0dIGllswYXwkG/+bgiBlE6IVIBAq+JwVWu1Sss3KarHY3OvFJUXZoZyRRg/Gc/+LRCE7lyKpwWQ70dbelGRyyJFH36eNv6ySXoUYtGkwlU5IVaHPApOxe4LHPZa/qhSRbPo2hwoh0orCtgejRebNtW5nlx00DNFgsvn8Svz2cIYLxsPVzKgUxs8Zxsxgn+Q/UvR7uq4AbAhyBMLxv7DjJ1pc7PJocuTno2Rw9uMZi1gkjbnmiOh6TTXIEWbnroyIhwc8555uto9melEUmWNQ+C+PwAK+MPw== + ''; + + runCommand "root_known_hosts" {} '' + mkdir -p $out/root/.ssh + cp ${root_known_hosts} $out/root/.ssh/known_hosts + '' # This setups a SSH server. Very important if you're setting up a headless system. # Feel free to remove if you don't need it.