added ssh to persist properly
parent
025bff6c97
commit
c8f1449415
|
@ -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 = [
|
||||||
|
|
|
@ -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 New Issue