28 lines
541 B
Nix
28 lines
541 B
Nix
|
{...}: {
|
||
|
environment.persistence."/persist" = {
|
||
|
hideMounts = true;
|
||
|
directories = [
|
||
|
# "/etc/secureboot"
|
||
|
"/etc/ssh"
|
||
|
"/etc/secrets"
|
||
|
|
||
|
"/var/log"
|
||
|
"/var/lib/systemd/coredump"
|
||
|
"/var/lib/nixos"
|
||
|
"/var/db/sudo"
|
||
|
];
|
||
|
files = [
|
||
|
"/etc/machine-id"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
fileSystems = {
|
||
|
"/".neededForBoot = true;
|
||
|
"/etc/ssh" = {
|
||
|
depends = ["/persist"];
|
||
|
neededForBoot = true;
|
||
|
};
|
||
|
"/persist".neededForBoot = true; # no further config is needed, disko handles the rest
|
||
|
};
|
||
|
}
|