How can I remove a mount unit?

I think I may have run into a different version of what you’re seeing.

I was doing frequent tweaks trying to get an automount working and was getting really weird symptoms.

The weird symptoms went away when I started this process when I needed to make a change

  • comment out mount config
  • nixos-rebuild --switch
  • Reboot
  • Uncomment mount and make changes
  • nixos-rebuild --switch

I can’t say if what I was running into was unique to mount units though cause all the systemd services I setup that weren’t mounts worked on my first try.

P.S. : I’m already in triple digit generation after less than 2 weeks because I had to do this so much lol