mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Fix ssh path
This commit is contained in:
parent
bc97a4ab04
commit
dcd9a47a3e
1 changed files with 3 additions and 3 deletions
|
|
@ -14,12 +14,12 @@ rbw login
|
|||
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'" > /etc/ssh/ssh_host_ed25519_key.pub
|
||||
nix-shell -p jq --run "rbw get --raw sopsssh | jq -r '.notes'" > /etc/ssh/ssh_host_ed25519_key
|
||||
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/
|
||||
sudo cp -r /mnt/var/etc/ssh/* /mnt/persist/etc/ssh/
|
||||
sudo cp -r /mnt/etc/ssh/* /mnt/persist/etc/ssh/
|
||||
sudo cp {/mnt,/mnt/persist}/var/lib/sops-nix/key.txt
|
||||
sudo cp {/mnt,/mnt/persist}/etc/machine-id
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue