Skip to content

nixos: allow more things to be disabled#429695

Merged
arianvp merged 7 commits intoNixOS:masterfrom
nikstur:more-disabling
Aug 10, 2025
Merged

nixos: allow more things to be disabled#429695
arianvp merged 7 commits intoNixOS:masterfrom
nikstur:more-disabling

Conversation

@nikstur
Copy link
Contributor

@nikstur nikstur commented Jul 30, 2025

Doesn't change any NixOS default but reduces the mandatory system closure by enabling users to exclude more things.

Is part of the larger work of #428908.
These changes are necessary to eventually make activation bashless. However, they are absolutely valuable even if you don't care at all about bashless because they give the user more control over their closure.

See the commits for more details on what is changed.

Commit-by-commit review is recommended.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@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. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Jul 31, 2025
nikstur added 5 commits July 31, 2025 20:42
This allows users to override all packages. This is useful to build
minimal systems that really don't required these packages that
previously were "required".
This allows users to override (i.e. exclude) these packages from their
system closure if they don't need them.
Fuse is stil enabled by default so the default behaviour of NixOS
doesn't change. However, now it's possible to actively exclude fuse when
you don't need it.
nikstur added 2 commits August 1, 2025 14:16
It is still enabled by default but now you can actively exclude it if
you don't need it.
@arianvp arianvp merged commit 1bb040f into NixOS:master Aug 10, 2025
25 of 27 checks passed
@nikstur nikstur deleted the more-disabling branch August 10, 2025 17:53
@spiage
Copy link

spiage commented Aug 10, 2025

Hi!
I have no words...
@nikstur @misuzu @arianvp

spiage in  a7 in ~ via  v3.13.5 via 💠 default took 8m59s
❯ date
-bash: date: command not found

spiage in  a7 in ~ via  v3.13.5 via 💠 default
❯ sleep 10
-bash: sleep: command not found

spiage in  a7 in ~ via  v3.13.5 via 💠 default
❯ df -h
-bash: df: command not found
Version 35337 -> 35338:
  coreutils-full: 9.7 → ∅, -13446.2 KiB
  cpio: 2.15 → ∅, -1124.7 KiB
  ed: 1.21.1 → ∅, -143.5 KiB
  mkpasswd: 5.6.4 → ∅, -31.5 KiB
  patch: 2.8 → ∅, -199.5 KiB
  time: 1.9 → ∅, -67.8 KiB

@spiage
Copy link

spiage commented Aug 10, 2025

FYI, it is from other man's system
image

@arianvp
Copy link
Member

arianvp commented Aug 10, 2025

Thanks for catching this.

Note that this would've been caught by Hydra as well and would not have ended up in any channels. I do recommend using unstable and not master directly unless you're intending to catch bugs early (in that case; thanks!)

@spiage
Copy link

spiage commented Aug 10, 2025

@arianvp It is my way to be helpful for this project =)
I have a second display with this script running
https://github.com/spiage/nixos-config/blob/main/nu.sh

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 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants