Skip to content

nixos/fuse: disable by default - #528369

Merged
mweinelt merged 8 commits into
NixOS:staging-nixosfrom
mweinelt:fuse-opt-in
Jun 20, 2026
Merged

mweinelt merged 8 commits into
NixOS:staging-nixosfrom
mweinelt:fuse-opt-in

Conversation

@mweinelt

@mweinelt mweinelt commented Jun 5, 2026 •

Copy link
Copy Markdown
Member

This change disables the fuse module by default and shifts the
obligation to enable it to consumers.

Maintainer feedback wanted

These are apps that I think require fuse, but I'm pinging maintainers to confirm my thinking.

Enabled in modules

Enabled in tests

Open questions

What do we want to do with these?

Things I tested:

  • nixosTests.kubo
  • nixosTests.locate (mentions fsType = "fuse.sshfs")
  • nixosTests.os-prober (mentions unionfs-fuse)
  • nixosTests.gitlab.runner (mentions mount_program = "/usr/bin/fuse-overlayfs")
  • nixosTests.restic
  • nixosTests.borgbackup

Things done

nixpkgs-branch-check[bot]

This comment was marked as outdated.

@mweinelt
mweinelt changed the base branch from master to staging-nixos June 5, 2026 11:47
@nixpkgs-ci nixpkgs-ci Bot closed this Jun 5, 2026
@nixpkgs-ci nixpkgs-ci Bot reopened this Jun 5, 2026
nixpkgs-branch-check[bot]

This comment was marked as outdated.

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (new) This PR adds a new package 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 6.topic: python Python is a high-level, general-purpose programming language. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: changelog This PR adds or changes release notes 8.has: module (update) This PR changes an existing module in `nixos/` 8.has: documentation This PR adds or changes documentation labels Jun 5, 2026
@nixpkgs-branch-check
nixpkgs-branch-check Bot dismissed stale reviews from themself June 5, 2026 11:57

Review dismissed automatically

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. and removed 8.has: package (new) This PR adds a new package 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 6.topic: python Python is a high-level, general-purpose programming language. labels Jun 5, 2026
@mweinelt mweinelt added this to the 26.11 milestone Jun 5, 2026
Comment on lines 335 to 338
programs.fuse = lib.mkIf (cfg.autoMount && cfg.settings.Mounts.FuseAllowOther) {
enable = true;
userAllowOther = true;
};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

programs.fuse.enable needs to be set to true if cfg.autoMount.
cfg.settings.Mounts.FuseAllowOther is independent and has nothing to do with fuse being enabled or not.

@mweinelt mweinelt Jun 5, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. PTAL.

Setting anything in FuseAllowOther requires programs.fuse.enable or the config file will not get written.

@mweinelt
mweinelt force-pushed the fuse-opt-in branch 3 times, most recently from 94b45df to 5aa04b0 Compare June 15, 2026 15:55
@nixpkgs-ci nixpkgs-ci Bot added the 6.topic: qt/kde Object-oriented framework for GUI creation label Jun 15, 2026
@mweinelt
mweinelt marked this pull request as ready for review June 15, 2026 16:09
@mweinelt

Copy link
Copy Markdown
Member Author

OK, I think that's it. If there are more consumers we are likely to find them by causing the regression, rather than scouring nixpkgs further.

@nixpkgs-ci
nixpkgs-ci Bot requested review from a team, Aleksanaa, Atemu, getchoo and jopejoe1 June 15, 2026 16:47
@mweinelt
mweinelt enabled auto-merge June 20, 2026 15:30
@mweinelt
mweinelt added this pull request to the merge queue Jun 20, 2026
Merged via the queue into NixOS:staging-nixos with commit 05e0d45 Jun 20, 2026
24 checks passed
@mweinelt
mweinelt deleted the fuse-opt-in branch June 20, 2026 15:47
@lomenzel lomenzel mentioned this pull request Jun 27, 2026
1 of 13 tasks
@l0b0

l0b0 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

It might be good to add the reasons why to the release notes. Maybe I missed it, but after reading the PR description, diff, and commit messages, I don't see the reasons mentioned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: qt/kde Object-oriented framework for GUI creation 8.has: changelog This PR adds or changes release notes 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants