Hi Guix,

I'm writing to share my approach on Nix packages intergation:
https://ultrarare.space/en/posts/manage-nix-packages-in-guix/

It provides a few wrapper APIs to use Nix packages as file-like objects and
packages, or building a profile and extend search paths for them.

The post also has an extra setup and you can apply them if needed, let me know
if there something missing!

Here're minimal configurations to set up the approach, details are explained in
the post.

Guix System
--8<---------------cut here---------------start------------->8---
(operating-system
  ...
  (packages
   (with-nix-profile
    (append (list (nix-shell-wrapper "ghostty"
                    '("github:NixOS/nixpkgs/nixos-26.05#ghostty")
                    #:run-command '("ghostty")))
            ...)))
  (services
   (append (list (service nix-service-type)
                 (service nix-search-paths-service-type))
           ...)))
--8<---------------cut here---------------end--------------->8---

Guix Home
--8<---------------cut here---------------start------------->8---
(home-environment
  ...
  (packages
   (with-nix-profile
    (append (list (nix-shell-wrapper "ghostty"
                    '("github:NixOS/nixpkgs/nixos-26.05#ghostty")
                    #:run-command '("ghostty")))
            ...)))
  (services
   (append (list (service home-nix-search-paths-service-type))
           ...)))
--8<---------------cut here---------------end--------------->8---

Thanks

Reply via email to