···7 device = "none";
8 fsType = "envfs";
9 options = [
10+ "bind-mount=/bin"
11 "fallback-path=${pkgs.runCommand "fallback-path" {} (''
12 mkdir -p $out
13 ln -s ${config.environment.usrbinenv} $out/env
···16 "nofail"
17 ];
18 };
19+ # We need to bind-mount /bin to /usr/bin, because otherwise upgrading
20+ # from envfs < 1.0.5 will cause having the old envs with no /bin bind mount.
21+ # Systemd is smart enough to not mount /bin if it's already mounted.
22 "/bin" = {
23 device = "/usr/bin";
24 fsType = "none";