mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Add ssh mkdir
This commit is contained in:
parent
dcd9a47a3e
commit
a1e4f2b6e1
1 changed files with 3 additions and 2 deletions
|
|
@ -11,11 +11,12 @@ cp /mnt/etc/nixos/hardware-configuration.nix hosts/$(hostname)/hardware-configur
|
|||
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
|
||||
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
|
||||
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
|
||||
sudo nixos-install --root /mnt --no-root-passwd --flake .#$(hostname)
|
||||
sudo mkdir -p /mnt/persist/var/lib/sops-nix
|
||||
sudo cp -r /mnt/var/lib/nixos/* /mnt/persist/var/lib/nixos/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue