I have a curious problem. I switched to Home Manager using flakes around 2022-08-30. Somehow the Brave browser, which I vaguely remember playing with at some point, is installed but it isn’t in the flake config. (It isn’t in
/etc/nixos/configuration.nix either.) I have no idea how but it is still in the path:
$ which brave /home/me/.nix-profile/bin/brave $ nix-env -q error: profile '/nix/var/nix/profiles/per-user/me/profile' is incompatible with 'nix-env'; please use 'nix profile' instead $ nix profile list 0 - - /nix/store/cqi0hk9i518akyy9ynaindrwlv122sbz-home-manager-path $ ls -l /nix/store/cqi0hk9i518akyy9ynaindrwlv122sbz-home-manager-path/opt 1 lrwxrwxrwx 1 root root 62 Dec 31 1969 /nix/store/cqi0hk9i518akyy9ynaindrwlv122sbz-home-manager-path/opt -> /nix/store/hamll57dra8qnsm8r6gi7jwqv4bcgq0a-brave-1.50.125/opt/ $ find ~/.config/nixpkgs/ -name '*.nix' | xargs grep -i brave # nothing
Clearly it is in the Home Manager profile but why? Why is
brave there when it isn’t in the flake that I build the profile from? How do I debug this problem?