Open reedrw opened 1 year ago
Moving my directory mounts into my system config works, but I'm not really sure why it didn't work sometimes with the home-manager module. Maybe some race condition?
When this happens, do you see the systemd user units for the mounts? If so, what is their log output?
I have the same thing happening whenever I start waydroid
, however the directories do not come back when I restart home-manager-<user>.service
The user units are still there:
❯ systemctl --user status bindMount--persist-home-neoney-nixus-.service
○ bindMount--persist-home-neoney-nixus-.service - Bind mount '/persist/home/neoney/nixus' at '/home/neoney/nixus'
Loaded: loaded (/home/neoney/.config/systemd/user/bindMount--persist-home-neoney-nixus-.service; enabled; preset: enabled)
Active: inactive (dead) since Sat 2023-12-30 14:41:55 CET; 1min 41s ago
Duration: 2min 672ms
Main PID: 3317 (code=exited, status=0/SUCCESS)
CPU: 38ms
Dec 30 14:39:54 miko systemd[3029]: Starting Bind mount '/persist/home/neoney/nixus' at '/home/neoney/nixus'...
Dec 30 14:39:54 miko systemd[3029]: Started Bind mount '/persist/home/neoney/nixus' at '/home/neoney/nixus'.
and have no useful logs...
Even restarting them manually doesn't bring it back
Once I did sudo waydroid container stop
, restarting the bindMount user services manually worked. Weird thing is, after starting waydroid back up, it didn't remove the mounts that time.
When this happens, do you see the systemd user units for the mounts? If so, what is their log output?
Applogies for the late reply, the issue resolved itself for some time (and I was not able to reproduce it) but seems to be back now. When this happens, some of the systemd units for the mounts are completely missing and systemctl status --user
shows a degraded status. I think this is the same issue as https://github.com/nix-community/home-manager/issues/2252
Lately sometimes whenever I boot my computer, some or all of my home-manager bind mounts fail to be created. This can always be fixed by running
sudo systemctl restart home-manager-$USER.service
, but I have no idea why it's happening.systemctl status home-manager-$USER.service
seems to show nothing out of the ordinary at rebootNote that, at this point, none of the bind mounts are mounted even though the generation seems to have been successfully activated.
After restarting the service, they are mounted
I have
systemd.user.startServices = true
in my home.nix