Commit ec2fb13358ac

Vincent Demeester <vincent@sbr.pm>
2026-02-13 23:30:14
fix(desktop): disable envfs
It is acting weird.. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 363cd14
Changed files (1)
systems
common
systems/common/desktop/default.nix
@@ -109,23 +109,8 @@
     # };
   };
 
-  # Workaround: envfs force-disables the usrbinenv activation script because it
-  # mounts a FUSE filesystem over /usr/bin at boot. But on fresh installs (or
-  # with impermanence), /usr/bin/env doesn't exist yet, and systemd refuses to
-  # boot before envfs can mount. Create it via activation as a fallback.
-  # See: https://github.com/NixOS/nixpkgs/issues/462556
-  system.activationScripts.usrbinenv = lib.mkOverride 0 ''
-    # Skip if envfs FUSE is already mounted (read-only during live switch)
-    if findmnt -n -t fuse /usr/bin >/dev/null 2>&1; then
-      exit 0
-    fi
-    mkdir -p /usr/bin
-    chmod 0755 /usr/bin
-    ln -sfn ${config.environment.usrbinenv} /usr/bin/env
-  '';
-
   services = {
-    envfs.enable = true;
+    envfs.enable = false;
     power-profiles-daemon.enable = true;
     upower.enable = true;
     udisks2.enable = true;