mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Remove redundant persist
This commit is contained in:
parent
0245d1a8a6
commit
d3097eb3a2
2 changed files with 1 additions and 5 deletions
|
|
@ -11,9 +11,6 @@ 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' | 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{,/persist}/var/lib/sops-nix
|
||||
sudo chown muon:users /mnt/var/lib/sops-nix -R
|
||||
sudo chown muon:users /mnt/persist/var/lib/sops-nix -R
|
||||
|
|
@ -21,7 +18,6 @@ rbw get sops > /mnt/var/lib/sops-nix/key.txt
|
|||
sudo cp {/mnt,/mnt/persist}/var/lib/sops-nix/key.txt
|
||||
sudo nixos-install --root /mnt --no-root-passwd --flake .#$(hostname)
|
||||
sudo cp -r /mnt/var/lib/nixos/* /mnt/persist/var/lib/nixos/
|
||||
sudo cp -r /mnt/etc/ssh/ssh_host* /mnt/persist/etc/ssh/
|
||||
sudo cp {/mnt,/mnt/persist}/etc/machine-id
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue