configuration.nix/system/persistence.nix

24 lines
501 B
Nix
Raw Normal View History

2023-03-29 21:48:55 +05:30
{ ... }: {
2023-03-15 22:11:59 +05:30
environment.persistence."/persist/system" = {
hideMounts = true;
directories = [
"/etc/NetworkManager/system-connections"
"/etc/secureboot"
"/root/.cache/nix"
"/var/cache/apparmor"
"/var/lib/bluetooth"
"/var/lib/docker"
2023-03-16 21:40:36 +05:30
"/var/lib/iwd"
2023-03-15 22:11:59 +05:30
"/var/lib/libvirt"
"/var/lib/NetworkManager"
"/var/lib/nixos"
"/var/lib/systemd"
"/var/log"
];
files = [
"/etc/machine-id"
2023-03-24 13:05:25 +05:30
"/etc/u2f_keys"
2023-03-15 22:11:59 +05:30
];
};
}