NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.96k stars 13.97k forks source link

Chromium suddenly installed on system update #334008

Closed Familex closed 2 months ago

Familex commented 2 months ago

Describe the bug

I don't have chromium in my system flake, but on recent update it appeared in system path.

I tried to bisect a specific commit: in ad80525b035676e0e39e4372cae2bf6f63f4f877 it not present, but in d4961abbcab3b72fa30b0f3ee0e2e8c858a8f63d it does. But it didn't make sense to me, because it is python library update.

I inspected it with nix-tree, and it doesn't seem to be a dependency.

Steps To Reproduce

Expected behavior

Should not.

Screenshots

Here is I switch between adjacent commits and chromium appears.

image

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.3, NixOS, 24.11 (Vicuna), 24.11.20240809.d4961ab`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"home-manager-24.05.tar.gz, nixos-24.05"`
 - nixpkgs: `/nix/store/znxkpcwydayfhscc8liwf35hhzpk61hx-source`

Add a :+1: reaction to issues you find important.

eclairevoyant commented 2 months ago

It's due to #333240 which means you have chromium enabled in your config. You can find which file sets it via

nix eval <config flake url>#nixosConfigurations.$(hostname).options.<optionName>.definitionsWithLocations

(replace the <url> and <option> accordingly)

Familex commented 2 months ago

Ok, I found it (by directly disabling option), it was stylix, it has programs.chromium.enable = true by default... (https://github.com/danth/stylix/blob/5853f1a8bd072f2ebabfc3de3973084353cf6f1e/modules/chromium/nixos.nix)

Familex commented 2 months ago

@eclairevoyant thanks for help!

nixos-discourse commented 2 months ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/chromium-not-in-any-nix-flake-but-installed-on-unstable-nixpkgs/50462/4

emilylange commented 2 months ago

The change been reverted in #334726 and will reach the unstable channel in a few days.

Refer to #334726 and related PRs for why this has been reverted.