this post was submitted on 24 Oct 2024
10 points (100.0% liked)

Guix

445 readers
18 users here now

Guix is an advanced distribution of the GNU operating system developed by the GNU Project

founded 5 years ago
MODERATORS
 

I'd like to change my Guix System to build packages in a different location (`/dev/shm/`) so that they are built on a tmpfs partition to hopefully speed up builds (defaults to `/tmp` which is on the `/` partition on Guix System). The Guix Manual only mentions that this may be done by setting the environment variable `TMPDIR`.

I was able to do this for a system that is configured as a foreign install by modifying the SystemD service file (Guix Mailing List), but I haven't been able to figure out how to modify my `/etc/config.scm` file to do this on Guix System.

top 3 comments
sorted by: hot top controversial new old
[–] velox_vulnus@lemmy.ml 2 points 8 months ago* (last edited 8 months ago) (1 children)
[–] Doom4535@lemmy.sdf.org 1 points 8 months ago

I had no idea on the manual version tag, I've probably been using an old one for a while... Thanks for pointing that out.

Ya, when it comes to modifying a Guix config, I haven't gotten used to all the guile commands and different system names that guix uses, maybe eventually I'll learn the semantics.

[–] rrobin@lemmy.world 1 points 8 months ago

I think it is configured in guix-configuration from the guix service type

https://guix.gnu.org/manual/en/html_node/Base-Services.html

there is a tmpdir option there ("A directory path where the guix-daemon will perform builds").

I have not tried this, but something like this on your list of services

(service guix-service-type
  (guix-configuration
    (tmpdir "/whatever")))

As usual for any big changes it is best to try running the operating system spec in a vm with guix system vm to see if it boots up ok.