Closed cyntheticfox closed 1 year ago
This should be solved by setting allowOther = true
. See the example and option description here: https://github.com/nix-community/impermanence#home-manager.
That opens up the bind mount to other users though. I guess I'll just look at setting my own rebuild hook...
It's not super problematic, as the errors don't seem to cause any effective changes to the configuration, but I get the following when using the impermanence home-manager module on NixOS:
Basically, it seems that NixOS, in restarting, attempts to restore your working directory (aren't working directories per-process anyways???) even with
--use-remote-sudo
, and tries to reload into a exclusive bind-mounted directory (as my~/repos
dir is on a persistent volume) and can't, due to the exclusive property mentioned beforehand.Is there a way to suppress this error or something? I suppose it could be problematic to do so, since that does assume no dynamics in the exclusivity of the working directory, but I'm not sure if that's something you can even check given what most people assume and build around
root
on Linux...