From 4c86a5b29aee0352953984ca4f061d9860277666 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Sun, 18 May 2025 23:21:18 +0800 Subject: [PATCH] feat(systems/nemesis): persist machine identifiers --- systems/x86_64-linux/nemesis/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/systems/x86_64-linux/nemesis/default.nix b/systems/x86_64-linux/nemesis/default.nix index 9db9750..f86f7d1 100644 --- a/systems/x86_64-linux/nemesis/default.nix +++ b/systems/x86_64-linux/nemesis/default.nix @@ -21,5 +21,18 @@ refresh-rate = "144"; }; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; -} + fileSystems."/persist".neededForBoot = true; + environment.persistence."/persist" = { + hideMounts = true; + directories = [ + "/var/lib/systemd" + ]; + files = [ + "/etc/ssh/ssh_host_ed25519_key" + "/etc/ssh/ssh_host_ed25519_key_pub" + "/etc/machine-id" + ]; + }; + +}