2023-05-26 17:30:37 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
age.identityPaths = ["/persist/etc/ssh/ssh_host_ed25519_key"];
|
2023-05-31 12:10:21 +02:00
|
|
|
# to allow all users to access hm managed persistent folders
|
|
|
|
programs.fuse.userAllowOther = true;
|
2023-05-26 17:30:37 +02:00
|
|
|
environment.persistence."/persist" = {
|
|
|
|
hideMounts = true;
|
|
|
|
|
|
|
|
files = [
|
|
|
|
"/etc/machine-id"
|
|
|
|
"/etc/ssh/ssh_host_ed25519_key"
|
|
|
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
|
|
|
];
|
|
|
|
directories = [
|
|
|
|
{
|
|
|
|
directory = "/var/lib/nixos";
|
|
|
|
user = "root";
|
|
|
|
group = "root";
|
|
|
|
mode = "0775";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|