NixOS-Config/modules/system/devices/disks/impermanence/root/default.nix
2024-11-19 13:20:34 -05:00

16 lines
245 B
Nix

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