Configure host to use SSH certs on the host and client side.

This commit is contained in:
DS 2025-03-31 21:30:46 -07:00
parent a872e6f395
commit 55eb37bb47
10 changed files with 129 additions and 3 deletions

View file

@ -4,5 +4,8 @@ default:
build_nixos_config host_type="code":
nix build .#nixosConfigurations.{{host_type}}.config.system.build.toplevel
nixify_host hostname host_type="code":
nix run github:nix-community/nixos-anywhere -- --flake .#{{host_type}} --target-host root@{{hostname}}
nixify_host hostname host_type="code" extra_names="":
./host_config/bootstrap_host.sh {{host_type}} {{hostname}} {{extra_names}}
sign_user_key username user_pub_key principals="root":
./host_config/sign_user_pub.sh {{username}} {{principals}} {{user_pub_key}}