···77 device = "none";
88 fsType = "envfs";
99 options = [
1010+ "bind-mount=/bin"
1011 "fallback-path=${pkgs.runCommand "fallback-path" {} (''
1112 mkdir -p $out
1213 ln -s ${config.environment.usrbinenv} $out/env
···1516 "nofail"
1617 ];
1718 };
1919+ # We need to bind-mount /bin to /usr/bin, because otherwise upgrading
2020+ # from envfs < 1.0.5 will cause having the old envs with no /bin bind mount.
2121+ # Systemd is smart enough to not mount /bin if it's already mounted.
1822 "/bin" = {
1923 device = "/usr/bin";
2024 fsType = "none";