Closed chz101 closed 1 year ago
/nix
is meant to be read-only, so perhaps you should use a different location for your persist path.
Hi! You need to create your home directory manually in persistent storage with the correct permissions, since the module runs as your user and won't have the permissions to so. The non-empty
error occurs because directories you've listed in your config have already been created in ephemeral storage - to get rid of this error, move the directories out of the way or simply reboot your system.
Got it working by moving things away. Thanks!
Hi, I recently tried to run impermanence as a home manager module under flakes, for a tempfs
/
and/home
setup following etu's blog post, but am having issues when calling nix-rebuild:Manually updating permissions using
chmod 777 /nix/persist/home
gives a different error:The directory is created correctly, but it still throws this error. Rebuilding multiple times and manually deleting the directory both don't solve the problem.
My flake.nix file looks as follows
and my home.nix just in case it's necessary
If there are things that I'm missing or that I should try, please let me know. Thank you.