{...}: { # needed for the hm impermanence config programs.fuse.userAllowOther = true; environment.persistence = { "/srv" = { hideMounts = true; directories = [ "/etc/nixos" "/var/log" "/etc/NetworkManager" # this shouldn't hurt even if networkmanager isn't installed # TODO this needs to be checked #"/var/lib/bluetooth" #"/var/lib/nixos" #"/var/lib/systemd/coredump" ]; files = [ "/etc/machine-id" ]; }; }; }