nix-software-center icon indicating copy to clipboard operation
nix-software-center copied to clipboard

"Installed" tab empty

Open NobbZ opened this issue 3 years ago • 7 comments

I added my flake and the software center doesn't list anything installed.

NobbZ avatar Nov 04 '22 07:11 NobbZ

As of right now it only detects packages installed in one configuration.nix, so if packages are installed in imported files, they won't be detected at the moment

vlinkz avatar Nov 04 '22 18:11 vlinkz

So there is basically no flake support?

NobbZ avatar Nov 04 '22 19:11 NobbZ

There is flake support. Just at the moment it only detects one configuration file and its options (not flake.nix), and then the location of the flake.nix file so it knows where to rebuild.

vlinkz avatar Nov 04 '22 19:11 vlinkz

But which configuration file does it take from the flake then?

NobbZ avatar Nov 04 '22 19:11 NobbZ

You have to specify it in either the welcome screen, the preferences, or in the nix-data module. For example, if I have my /etc/nixos directory containing flake.nix and configuration.nix, then in the welcome screen, I'd specify my configuration file as /etc/nixos/configuration.nix and my flake file as /etc/nixos/flake.nix. At some point, I'll probably try to make it so everything is detected from just the flake.nix file, but that's going to take a lot of work to implement.

vlinkz avatar Nov 04 '22 19:11 vlinkz

What do I need to specify the flake for then? I could just specify that one configuration file.

Seems as if I totally misunderstood this tool.

NobbZ avatar Nov 04 '22 19:11 NobbZ

Flake is specified so that `nixos-rebuild --flake /path/to/flake#profile' is called properly when upgrading or adding a package to the configuration

vlinkz avatar Nov 04 '22 22:11 vlinkz