Changes for livedisk

This commit is contained in:
2021-07-20 18:32:56 -07:00
parent 7b889633d8
commit f6c29f056d
5 changed files with 25 additions and 19 deletions
+10 -3
View File
@@ -12,7 +12,7 @@ in {
enp4s0f0.useDHCP = false;
enp4s0f1.useDHCP = false;
intif0 = { useDHCP = true; };
intif0.useDHCP = true;
};
};
@@ -36,10 +36,17 @@ in {
"L /root/.ssh/id_rsa - - - - /state/root/ssh/id_rsa"
"L /root/.ssh/id_rsa.pub - - - - /state/root/ssh/id_rsa.pub"
"L /root/.ssh/known_hosts - - - - /state/root/ssh/known_hosts"
"L /etc/ssh/ssh_host_ed25519_key - - - - /state/ssh/ssh_host_ed25519_key"
"L /etc/ssh/ssh_host_rsa_key - - - - /state/ssh/ssh_host_rsa_key"
];
environment.etc = {
"ssh/ssh_host_rsa_key".source = "/state/ssh/ssh_host_rsa_key";
"ssh/ssh_host_rsa_key.pub".source = "/state/ssh/ssh_host_rsa_key.pub";
"ssh/ssh_host_ed25519_key".source = "/state/ssh/ssh_host_ed25519_key";
"ssh/ssh_host_ed25519_key.pub".source =
"/state/ssh/ssh_host_ed25519_key.pub";
"machine-id".source = "/state/host/machine-id";
};
security.sudo.extraConfig = ''
# Due to rollback, sudo will lecture after every reboot
Defaults lecture = never