all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Using distrobox/apx on Guix
@ 2024-04-20  2:15 Gustavo Diaz
  0 siblings, 0 replies; 2+ messages in thread
From: Gustavo Diaz @ 2024-04-20  2:15 UTC (permalink / raw)
  To: help-guix

[-- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Using distrobox/apx on Guix
@ 2024-04-20  2:19 Gustavo Diaz
  0 siblings, 0 replies; 2+ messages in thread
From: Gustavo Diaz @ 2024-04-20  2:19 UTC (permalink / raw)
  To: help-guix

[-- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-20 18:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-20  2:15 Using distrobox/apx on Guix Gustavo Diaz
  -- strict thread matches above, loose matches on Subject: below --
2024-04-20  2:19 Gustavo Diaz

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.