added ssh to persist properly
This commit is contained in:
parent
025bff6c97
commit
c8f1449415
2 changed files with 6 additions and 2 deletions
|
@ -8,7 +8,11 @@
|
||||||
adjtime.source = "/persist/etc/adjtime";
|
adjtime.source = "/persist/etc/adjtime";
|
||||||
NIXOS.source = "/persist/etc/NIXOS";
|
NIXOS.source = "/persist/etc/NIXOS";
|
||||||
machine-id.source = "/persist/etc/machine-id";
|
machine-id.source = "/persist/etc/machine-id";
|
||||||
ssh.source = "/persist/etc/ssh";
|
"ssh/ssh_host_ed25519_key".source = "/persist/etc/ssh/ssh_host_ed25519_key";
|
||||||
|
"ssh/ssh_host_ed25519_key.pub".source =
|
||||||
|
"/persist/etc/ssh/ssh_host_ed25519_key.pub";
|
||||||
|
"ssh/ssh_host_rsa_key".source = "/persist/etc/ssh/ssh_host_rsa_key";
|
||||||
|
"ssh/ssh_host_rsa_key.pub".source = "/persist/etc/ssh/ssh_host_rsa_key.pub";
|
||||||
shadow.source = "/persist/etc/shadow";
|
shadow.source = "/persist/etc/shadow";
|
||||||
};
|
};
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
|
|
2
modules/darling-erasure/initalize-persist.sh
Normal file → Executable file
2
modules/darling-erasure/initalize-persist.sh
Normal file → Executable file
|
@ -9,5 +9,5 @@ sudo cp -r {,/persist}/etc/nixos
|
||||||
sudo cp {,/persist}/etc/adjtime
|
sudo cp {,/persist}/etc/adjtime
|
||||||
sudo cp {,/persist}/etc/NIXOS
|
sudo cp {,/persist}/etc/NIXOS
|
||||||
|
|
||||||
sudo cp -r {,/persist}/etc/ssh
|
sudo cp {,/persist}/etc/ssh/ssh_host_*
|
||||||
sudo cp {,/persist}/etc/shadow
|
sudo cp {,/persist}/etc/shadow
|
||||||
|
|
Loading…
Reference in a new issue