snowfallorg / nix-software-center

A simple gtk4/libadwaita software center to easily install and manage nix packages
GNU General Public License v3.0
572 stars 16 forks source link

use flake does not work #59

Open tobiasBora opened 8 months ago

tobiasBora commented 8 months ago

If I enable useFlake in the preference and re-open the preference, flake is kind of directly disabled (at least it is not blue anymore, and the flake menu is gone), but if I disable + enable it, it turns blue again until I close it again:

Peek 12-01-2024 22-57

Actually, I checked, and unfortunately the programs are installed via nix-env and not nix profile, as confirmed by nix profile list (here alacritty is installed via the nix-software-center, zotero via nix-env, and hello via nix profile):

$ nix profile list
0 - - /nix/store/zwnk0sbghy01ygiani5j1wcn860mdrz0-alacritty-0.10.1
1 - - /nix/store/r706zydh6gavk8qgkcakqhjyiyr2xz7m-zotero-6.0.12
2 - - /nix/store/p20j55v1mvagi64bmrf098mrvj63c7wq-home-manager-path
3 flake:nixpkgs#legacyPackages.x86_64-linux.hello path:/nix/store/ckj6flydv9mmxnr5c8rj0zir5rwakqy7-source?lastModified=1675115703&narHash=sha256-4zetAPSyY0D77x+Ww9QBe8RHn1akvIvHJ%2fkgg8kGDbk=&rev=2caf4ef5005ecc68141ecb4aac271079f7371c44#legacyPackages.x86_64-linux.hello /nix/store/zwnmwns242s7zzm2f4p0ndqdsxw1jb78-hello-2.12.1

This is confirmed by the fact that the interface still prints "User (nix-env)", so I’m thinking flake might not be enabled properly:

image

See also https://github.com/snowfallorg/nix-software-center/issues/60 if I try to manually configure a flake.nix.

iopq commented 6 months ago

Mine is turned on when it's on the left side

I really hate this kind of on off switch, what happened to checkmarks?

ShivanshuKantPrasad commented 4 months ago

It seems that the use nix flakes setting is not enabled until you add your flake file and nixosConfiguration name in the preferences.