You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had thought about this a bit, months ago. I'm afraid that many features of nix won't be accessible through the API, but still, it could provide a nice GUI for basic work without too much work on our side. EDIT: hmm, estimate of a few man-months of coding is a little higher than I expected.
This would be really cool, especially for nixos. It would be awesome to integrate with gnome-software's offline update. I don't know how well nix could fit in but it would be awesome if the updates could be completely built then it would just be a trivial switch to activate the new configuration on reboot.
Yeah, I get that it is possible but getting it integrated with packagekit would provide an awesome user experience. This way everything could get updated in the background, then when it is all done you get a notification "Updates ready" and you can either reboot now, or the next time you shutdown/reboot you just check the checkbox "Install updates". This means no waiting or thinking which is exactly what I want from my updates. And of course if something fails, you can just roll back.
@vcunat: I don't know what features depend on it, I just saw it print a warning The name org.freedesktop.PackageKit was not provided by any .service files. Hopefully it's an optional dependency. I guess the real blocker for the GNOME printer GUI is the missing org.fedoraproject.Config.Printing service.
I've started working on a branch that's still a work-in-progress. But I've come up with a few issues with the implementation:
What is a "package" in the context of Nix?
Can the "user-env" files be included as a library?
Is there any concept of "groups" or "categories" in Nix/nixpkgs?
Should installed packages be installed at the "root" level or the "user" level? (PackageKit assumes everything will be "root".
It's certainly not very difficult if we choose to just implement the bare minimum vfuncs. This will probably only work with the "pkcon" client at first.
Right now I'm going to just try to support "Nix" and ignore things like "upgrade system" or "repair system" that only make sense in the context of NixOS. Other things like "update packages" and "get repo list" I'm going to wait until nix-channel is rewritten in C++. Also things like "depends on" and "required by" don't really make sense in the context of Nix although I suppose they wouldn't be hard to implement.
I've got an open pull request on the PackageKit repository if anyone wants to review it. I'm wanting to get at least PackageKit and Gnome Software support fully working in time for NixOS release 16.09.
Doesn't work in 18.03. fails with Failed to load the backend: opening module nix failed : /nix/store/qjdawq325swj6b77vz3l3bzqsvrcwdav-packagekit-1.1.8/lib/packagekit-backend/libpk_backend_nix.so: cannot open shared object file: No such file or directory
Activity
vcunat commentedon Mar 31, 2014
I had thought about this a bit, months ago. I'm afraid that many features of nix won't be accessible through the API, but still, it could provide a nice GUI for basic work without too much work on our side. EDIT: hmm, estimate of a few man-months of coding is a little higher than I expected.
hughsie commentedon Mar 31, 2014
There is lots of things a backend has to do to service a high-level client like gnome-software; it's not a trivial amount of work.
heyakyra commentedon Mar 31, 2014
With a thousand mans, that'll only be a few hours!
kevincox commentedon Nov 25, 2015
This would be really cool, especially for nixos. It would be awesome to integrate with gnome-software's offline update. I don't know how well nix could fit in but it would be awesome if the updates could be completely built then it would just be a trivial switch to activate the new configuration on reboot.
vcunat commentedon Nov 25, 2015
That's done by
nixos-rebuild boot.kevincox commentedon Nov 25, 2015
Yeah, I get that it is possible but getting it integrated with packagekit would provide an awesome user experience. This way everything could get updated in the background, then when it is all done you get a notification "Updates ready" and you can either reboot now, or the next time you shutdown/reboot you just check the checkbox "Install updates". This means no waiting or thinking which is exactly what I want from my updates. And of course if something fails, you can just roll back.
vcunat commentedon Nov 25, 2015
See
system.autoUpgrade.enableand related nixos settings.bjornfor commentedon Jan 1, 2016
Bumped into this just now, GNOME GUI printer configuration apparently depends on PackageKit: NixOS/nixpkgs#12058.
vcunat commentedon Jan 2, 2016
Do you know how it depends on it? I assumed that it detected missing SW so tried to run some packagekit dialog to install it.
bjornfor commentedon Jan 2, 2016
@vcunat: I don't know what features depend on it, I just saw it print a warning
The name org.freedesktop.PackageKit was not provided by any .service files. Hopefully it's an optional dependency. I guess the real blocker for the GNOME printer GUI is the missingorg.fedoraproject.Config.Printingservice.pizzamaker commentedon Feb 21, 2016
This is a very interesting idea, and it also opens the door for PackageKit to support Guix as well.
matthewbauer commentedon May 3, 2016
I've started working on a branch that's still a work-in-progress. But I've come up with a few issues with the implementation:
It's certainly not very difficult if we choose to just implement the bare minimum vfuncs. This will probably only work with the "pkcon" client at first.
Right now I'm going to just try to support "Nix" and ignore things like "upgrade system" or "repair system" that only make sense in the context of NixOS. Other things like "update packages" and "get repo list" I'm going to wait until nix-channel is rewritten in C++. Also things like "depends on" and "required by" don't really make sense in the context of Nix although I suppose they wouldn't be hard to implement.
WiP branch
vcunat commentedon May 5, 2016
@matthewbauer:
lib.isDerivation, though later we might devise a meta flag to hide stuff.matthewbauer commentedon Jun 2, 2016
I've got an open pull request on the PackageKit repository if anyone wants to review it. I'm wanting to get at least PackageKit and Gnome Software support fully working in time for NixOS release 16.09.
PackageKit/PackageKit#126
balsoft commentedon May 7, 2018
Doesn't work in 18.03. fails with
Failed to load the backend: opening module nix failed : /nix/store/qjdawq325swj6b77vz3l3bzqsvrcwdav-packagekit-1.1.8/lib/packagekit-backend/libpk_backend_nix.so: cannot open shared object file: No such file or directoryjtojnar commentedon May 7, 2018
@balsoft it is currently disabled since it does not compile, see NixOS/nixpkgs#21230
edolstra commentedon Nov 28, 2019
Closing on account of age.
davidak commentedon Nov 28, 2019
This is still an important feature to have for a user friendly GUI for Nix!
zimbatm commentedon Nov 29, 2019
It's important but is also best implemented as a separate project. Nix itself should provide the primitives that are needed by the GUI process.
nixos-discourse commentedon Jan 18, 2020
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/is-anyone-working-on-a-gui-tool-to-manage-packages/5540/4
nixos-discourse commentedon May 14, 2020
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/app-store-streaming-apps/7196/1
aviallon commentedon Dec 17, 2021
Is there any progress on this? It would be awesome, as NixOS with user-friendly installations would be the best grandma-compatible operating system!
See: NixOS/nixpkgs#94055
Merge pull request NixOS#233 from nix-dot-dev/dependabot/pip/sphinx-c…
Merge pull request NixOS#233 from kolloch/dependabot/cargo/crate2nix/…
doc/inventory: add FOLLOWUPS ledger for the holistic-review pass
doc/inventory: Batch D — file new catalog candidates NixOS#227-NixOS#233