I have enabled impermanence and almost everything works great with a few tweaks. I have a problem however regarding captive portals. Before I used impermanence I only had to log in on a captive portal every now and then and now I have to login every reboot so I’m missing some files/directories to persist. I’m using Gnome. Can you help me?
I currently have the following configuration:
environment.persistence."/persistent" = {
enable = true;
hideMounts = true;
directories = [
"/nix"
"/etc/nixos/"
"/var/lib/nixos" # important nixos files like uid/gid map
"/var/log"
"/var/tmp"
"/var/lib/AccountsService" # Needed to show profile picture of user
"/etc/NetworkManager/" # Needed for Wifi/VPN connections in Gnome
"/var/lib/NetworkManager/" # Some additional network state
{ directory = "/home/abcd"; user = "abcd"; group = "users"; mode = "u=rwx,g=,o="; }
];
files = [
"/etc/machine-id" # needed for systemd logs and possibly other stuff
"/etc/adjtime" # something about hardware clock offset
"/crypto_keyfile.bin" # Needed for LUKS
"/root/.nix-channels"
"/var/db/sudo/lectured/1000" # Disable showing sudo lecture after each boot
];
};
If you have any other important directories I should include or other tips feel free to let me know.
Thanks a lot!