infra/nixos/hosts/eidola/mounts.nix

33 lines
613 B
Nix
Raw Normal View History

2024-10-13 15:16:39 -05:00
{...}: {
environment.persistence."/persist" = {
hideMounts = true;
directories = [
# "/etc/secureboot"
"/etc/ssh"
"/etc/secrets"
"/var/log"
"/var/lib/systemd/coredump"
"/var/lib/nixos"
"/var/db/sudo"
2024-12-14 01:52:39 -06:00
"/etc/zfs"
2024-12-14 02:54:01 -06:00
"/var/lib/samba"
2024-12-22 01:11:19 -06:00
"/var/lib/bitwarden_rs"
2024-10-13 15:16:39 -05:00
];
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
};
}