Skip to content

nixos/programs/command-not-found: fix eval - #512102

Merged
yayayayaka merged 1 commit into
NixOS:masterfrom
gravndal:command-not-found
Apr 21, 2026
Merged

yayayayaka merged 1 commit into
NixOS:masterfrom
gravndal:command-not-found

Conversation

@gravndal

@gravndal gravndal commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

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.

@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: 0 This PR does not cause any packages to rebuild on Darwin. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 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 Apr 21, 2026
@leana8959

Copy link
Copy Markdown
Contributor

Indeed, thanks for your fix!

@yayayayaka
yayayayaka added this pull request to the merge queue Apr 21, 2026
Merged via the queue into NixOS:master with commit ed8af91 Apr 21, 2026
30 checks passed
@gravndal
gravndal deleted the command-not-found branch April 21, 2026 15:57
@sepointon

Copy link
Copy Markdown
Contributor

This now seems to be conflicting with the minimal profile:

       error: The option `programs.command-not-found.enable' has conflicting definition values:
       - In `/nix/store/cz1vdp49f1jzc817xzbjl2n0zk6llakr-nixos-unstable-patched/nixos/modules/profiles/minimal.nix': false
       - In `/nix/store/cz1vdp49f1jzc817xzbjl2n0zk6llakr-nixos-unstable-patched/nixos/modules/programs/command-not-found/command-not-found.nix': true
       Use `lib.mkForce value` or `lib.mkDefault value` to change the priority on any of these definitions.

@gravndal

Copy link
Copy Markdown
Contributor Author

This probably needs a test honestly.

@leana8959

Copy link
Copy Markdown
Contributor

Maybe we can do something similar to the lxc module?

# friendlier defaults than minimal profile provides
# but we can't use mkDefault since minimal uses it
documentation.enable = lib.mkOverride 890 true;
documentation.nixos.enable = lib.mkOverride 890 true;
services.logrotate.enable = true;

@leana8959 leana8959 mentioned this pull request Apr 23, 2026
2 of 13 tasks
@leana8959

Copy link
Copy Markdown
Contributor

I opened a PR fixing the eval and added a test :)

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/` 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 10.rebuild-darwin: 0 This PR does not cause any 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