<luciddreamzzz>I think I just need to remember: ;; cons* adds items to the list given as its last argument.
<nckx>luciddreamzzz: I'm still not really sure I understand your question, but then I'm also very tired.
<nckx>The difference between CONS and CONS* is only in how many arguments they accept. The last argument to both is a list, any list. The name of that list doesnt matter (it can be %default-packages or my-favourite-vegetables).
<nckx>(cons* a b c foo) is mere shorthand for (cons a (cons b (cons c foo))).
<nckx>Because CONS can only, well, cons one element at a time and that quickly becomes annoying.
<nckx>Lists don't have to start with %, by the way, it's just a convention for certain global variable names. And not everyone follows that convention.
<luciddreamzzz>I was going to assume that from your example 'FOO' actually hmm
<nckx>One more thing: CONS is right in the example you posted, but as soon as you'd want to add two user accounts at once you'd want to use CONS*. And since (cons* x list) is equivalent to (cons x list), I always use CONS* in my configuration.
<nico202>Is there a nix to guix cheatsheet? Sometimes I find myself wanting to replicate what I usually do on nix but don't know how. This time is: nix-env -f . -i package (to install a package from a local nixpkgs checkout)
<janneke>mbakke: indeed, i failed to upload the last bootstrap-mes build. fixed now.
<Laalf>can someone tell me how to fix "guix package: error: profile '/var/guix/profiles/per-user/root/guix-profile' does not exist"? i am running guixsd. the last thing i run before that was a guix gc. i didnt touch any of roots files or the store
<janneke>Laalf: what command did you issue that gives this error; does `guix package -i hello' fix it for you?
<Laalf>i somehow fixed it by deleting, reconfiguring, rebooting and installing a package
<Laalf>now root just says "bash-4.4#" but i could care less