NixOS-Config/modules/system/devices/disks/impermanence/root/default.nix

15 lines
220 B
Nix

{ ... }:
{
environment.persistence."/persist" = {
hideMounts = true;
directories = [
"/etc/nixos"
"/etc/secureboot"
"/var/lib/nixos"
];
files = [
"/etc/machine-id"
];
};
}