Add ssh write priviledge

This commit is contained in:
muon 2025-07-31 22:35:06 +00:00
parent a1e4f2b6e1
commit 3086f83fc9

View file

@ -12,8 +12,8 @@ rbw config set email admin@muon.host
rbw config set base_url https://vault.muon.host
rbw login
sudo mkdir -p /mnt/etc/ssh
nix-shell -p jq --run "rbw get --raw sopsssh | jq -r '.data.password'" > /mnt/etc/ssh/ssh_host_ed25519_key.pub
nix-shell -p jq --run "rbw get --raw sopsssh | jq -r '.notes'" > /mnt/etc/ssh/ssh_host_ed25519_key
nix-shell -p jq --run "rbw get --raw sopsssh | jq -r '.data.password'" | sudo tee /mnt/etc/ssh/ssh_host_ed25519_key.pub
nix-shell -p jq --run "rbw get --raw sopsssh | jq -r '.notes'" | sudo tee /mnt/etc/ssh/ssh_host_ed25519_key
sudo mkdir -p /mnt/var/lib/sops-nix
sudo chown muon:users /mnt/var/lib/sops-nix -R
rbw get sops > /mnt/var/lib/sops-nix/key.txt