all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gustavo Diaz <adrain.soft@gmail.com>
To: help-guix@gnu.org
Subject: Using distrobox/apx on Guix
Date: Fri, 19 Apr 2024 20:15:05 -0600	[thread overview]
Message-ID: <65a003f5-b9ea-4eb1-93f0-9b99aef01b28@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 996 bytes --]

Just for the record and I hope this helps someone.

I'm able to use distrobox/apx in Guix. I shared 4 files here that are 
required for the following script.

You will require Podman as a system package (but I think adapting the 
script for Docker may be possible) and Nix as system service-type installed.

sudo mkdir -p /usr/share/apx
sudo cp config.json /usr/share/apx/.
sudo mkdir -p /etc/containers
sudo cp policy.json /etc/containers/.
sudo cp subuid /etc/.
sudo cp subgid /etc/.
podman system reset
podman system migrate
nix-channel --add https://nixos.org/channels/nixos-23.05 nixpkgs
sudo herd restart nix-daemon
nix-channel --update
nix-env -iA nixpkgs.distrobox nixpkgs.apx
apx init --aur

Please, take in count that inside the files attached here you may need 
to change my user gus to yours in your computer.

And of course, even entering an apx container will break some 
executables in the host as well as in the guest and for that Guix Home 
is going to be required.

Good luck!


[-- Attachment #2: config.json --]
[-- Type: application/json, Size: 167 bytes --]

[-- Attachment #3: policy.json --]
[-- Type: application/json, Size: 92 bytes --]

[-- Attachment #4: subgid --]
[-- Type: text/plain, Size: 17 bytes --]

gus:100000:65536

[-- Attachment #5: subuid --]
[-- Type: text/plain, Size: 17 bytes --]

gus:100000:65536

             reply	other threads:[~2024-04-20 18:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-20  2:15 Gustavo Diaz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-20  2:19 Using distrobox/apx on Guix Gustavo Diaz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=65a003f5-b9ea-4eb1-93f0-9b99aef01b28@gmail.com \
    --to=adrain.soft@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.