Skip to content

Nix backend for PackageKit / Gnome-Software #233

Closed

Description

@heyakyra

This will make Nix much more accessible to a wider audience.

Also filed there: https://bugs.freedesktop.org/show_bug.cgi?id=76810

Activity

  1. vcunat commented on Mar 31, 2014

    @vcunat
    Member

    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.

  2. hughsie commented on Mar 31, 2014

    @hughsie

    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.

  3. heyakyra commented on Mar 31, 2014

    @heyakyra
    Author

    With a thousand mans, that'll only be a few hours!

  4. kevincox commented on Nov 25, 2015

    @kevincox
    Contributor

    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.

  5. vcunat commented on Nov 25, 2015

    @vcunat
    Member

    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.

    That's done by nixos-rebuild boot.

  6. kevincox commented on Nov 25, 2015

    @kevincox
    Contributor

    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.

  7. vcunat commented on Nov 25, 2015

    @vcunat
    Member

    See system.autoUpgrade.enable and related nixos settings.

  8. bjornfor commented on Jan 1, 2016

    @bjornfor
    Contributor

    Bumped into this just now, GNOME GUI printer configuration apparently depends on PackageKit: NixOS/nixpkgs#12058.

  9. vcunat commented on Jan 2, 2016

    @vcunat
    Member

    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.

  10. bjornfor commented on Jan 2, 2016

    @bjornfor
    Contributor

    @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.

  11. pizzamaker commented on Feb 21, 2016

    @pizzamaker

    This is a very interesting idea, and it also opens the door for PackageKit to support Guix as well.

  12. matthewbauer commented on May 3, 2016

    @matthewbauer
    Member

    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:

    1. What is a "package" in the context of Nix?
    2. Can the "user-env" files be included as a library?
    3. Is there any concept of "groups" or "categories" in Nix/nixpkgs?
    4. 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.

    WiP branch

  13. vcunat commented on May 5, 2016

    @vcunat
    Member

    @matthewbauer:

    1. I would go for anything recognized by lib.isDerivation, though later we might devise a meta flag to hide stuff.
    2. I don't understand that one.
    3. We don't really have any package classification yet.
    4. Let's install as the user who runs the app. Admin can run it as root.
  14. matthewbauer commented on Jun 2, 2016

    @matthewbauer
    Member

    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

  15. balsoft commented on May 7, 2018

    @balsoft
    Member

    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

  16. jtojnar commented on May 7, 2018

    @jtojnar
    Member

    @balsoft it is currently disabled since it does not compile, see NixOS/nixpkgs#21230

  17. edolstra commented on Nov 28, 2019

    @edolstra
    Member

    Closing on account of age.

  18. davidak commented on Nov 28, 2019

    @davidak
    Member

    This is still an important feature to have for a user friendly GUI for Nix!

  19. zimbatm commented on Nov 29, 2019

    @zimbatm
    Member

    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.

  20. nixos-discourse commented on Jan 18, 2020

    @nixos-discourse
  21. nixos-discourse commented on May 14, 2020

    @nixos-discourse

    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

  22. aviallon commented on Dec 17, 2021

    @aviallon

    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

  23. added a commit that references this issue on Jan 1, 2024
  24. added a commit that references this issue on Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions