mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Add persist key
This commit is contained in:
parent
800e05c744
commit
33743a121c
3 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ rbw get sops > /mnt/var/lib/sops-nix/key.txt
|
|||
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/etc/ssh/* /mnt/persist/etc/ssh/
|
||||
sudo cp -r /mnt/etc/ssh/ssh_host* /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