forked from mirrors_public/oddlama_nix-config
feat(guests): derive stable machine-id for containers; always start sshd in containers
This commit is contained in:
parent
054103a004
commit
eafe3b673c
6 changed files with 74 additions and 43 deletions
|
@ -109,7 +109,9 @@ in {
|
|||
environment.persistence."/persist" = {
|
||||
hideMounts = true;
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
# For ephemeral nixos-containers we cannot link the /etc/machine-id file,
|
||||
# because it will be generated based on a stable container uuid.
|
||||
(lib.mkIf (!config.boot.isContainer) "/etc/machine-id")
|
||||
"/etc/ssh/ssh_host_ed25519_key"
|
||||
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue