Hi Ludo’,
On Wed Mar 18, 2026 at 12:22 PM CET, Ludovic Courtès wrote: > Hello! > > "Tanguy Le Carrour" <[email protected]> skribis: > >> When uncommented, it produced the following file: >> >> `/etc/guix/machines.scm -> >> /gnu/store/yszkwdhpkganzkdgjy8iw9xmx5p7gdyz-machines.scm` >> >> That contains: >> >> ```scheme >> (eval-when (expand load eval) (let ((extensions (quote ())) (prepend (lambda >> (items lst) (let loop ((items items) (lst lst)) (if (null? items) lst (loop >> (cdr items) (cons (car items) (delete (car items) lst)))))))) (set! >> %load-path (prepend (cons >> "/gnu/store/c6cf35bavqqs5mqsffl45izqaf0qn4dg-module-import" (map (lambda >> (extension) (string-append extension "/share/guile/site/" >> (effective-version))) extensions)) %load-path)) (set! %load-compiled-path >> (prepend (cons >> "/gnu/store/ciyca72rh63y2mpszwn4csrlxx2l62pk-module-import-compiled" (map >> (lambda (extension) (string-append extension "/lib/guile/" >> (effective-version) "/site-ccache")) extensions)) %load-compiled-path))))((@ >> (srfi srfi-1) append-map) (lambda (entry) (if (build-machine? entry) (list >> entry) entry)) (list (build-machine (name "rafflesia") (systems (list >> "x86_64-linux" "armhf-linux")) (host-key "ssh-ed25519 >> AAAAC3NzaC1lZDI1NTE5AAAAIL/S4mANVaqk4s6Qd7K0R2fFqzrVtqrdrRLb/uOqRB5V") (user >> "bob") (private-key "/home/tanguy/tmp/bob@rafflesia_ed25519") >> (parallel-builds 8)))) >> ``` >> >> When I comment it out, reconfigure… I still have the exact same link to the >> same store item?! >> Is that the expected behaviour? Should I do something else to un-configure >> the offload? > > Ooh, interesting. The ‘guix-service-type’ produces > /etc/guix/machines.scm only if the ‘build-machines’ field is non-empty. > > When you reconfigure with the empty ‘build-machines’, it thus leaves > /etc/guix/machines.scm unchanged, which in your case means that the > previous /etc/guix/machines.scm is preserved. Ouch. > > So what you have to do after reconfiguring is to manually remove > /etc/guix/machines.scm. > > But really, I think that’s a bug. We should change ‘guix-activation’ in > (gnu services base) to unconditionally provide /etc/guix/machines.scm, > or to remove it when ‘build-machines’ is empty, to avoid that problem. Yep, sounds like a bug to me! 😁 I’ll remove it manually and… 😉 Thaaaanks! -- Tanguy
