<frog>mekeor[m]: i hacked this together with undocumented functions. i don't know if it's the right way to do it. (hash-map->list values (module-obarray (module-public-interface (resolve-module '(gnu packages libusb)))))
<mekeor[m]>frog: that's pretty awesome. thank you very much :)
<frog>it should actually be "list" or "cons" instead of "values".
<mekeor[m]>agreed. i like "list" most. and then, the actual <package> objects are still inside each element of the list, it seems.
<mirai>nckx: I decided to gun through the last mile and figured out the lua-ffi thing
<takev[m]>I am trying to work with a package (guile-torrent), and when I go to build I see that the git repo it used as a source is no longer up. Does not seem to be in the software heritage foundation either. I think I found a mirror (https://framagit.org/tyreunom/guile-torrent/-/tree/master), but I am unsure if it is actually a mirror or not due to the tags not being in the mirror. Is there a way to find out if they are the same so the URL can be
<takev[m]>updated? And if not, and the package is lost, should I submit a patch to remove it?
<takev[m]>Yeah. I am playing around with implementing an nREPL sever for guile, which requires bencode encoding/decoding, and as far as I can tell that library is the only thing that provides those operations.
<mirai>if you login first physically (i.e. without VNC), when you reconnect again in the VNC client it now works??
<mirai>I did a guix home reconfigure in between since emacs was complaining about funky GDK pixbuf loaders and other things
<mirai>nope, seems unrelated. Did a reboot and am back at a black VNC screen
<mirai>looks like it you have to physically login first before VNC will properly work
<mirai>figured it out a workaround: set (wayland? #f) in GDM
<juliana[m]>In a scenario in which two packages in the different channels have the same name, what happens when attempting to install or search for that package?
<juliana[m]>so if you have a package called "example" in a the main Guix channel, and then another package called "example" in another channel, with the same object and package name (hey share the prelude (define-public example (package (name "example") ...))), what is the result of running guix package -i example?
<juliana[m]>it seems attempting to pull during this situation throws an error
<ChocolettePalett>Don't channels have priorities? I assume the first channel from the list will be sourced for a package
<ChocolettePalett>Or maybe not... I can't find a proof. Though you can e.g. specify channel for "guix pull"
<juliana[m]>i realized my initial test failed for an unrelated reason (turns out you need all the necessary modules to be important what a silly mistake) so i am retrying
<juliana[m]>yes okay the channels do have priorities, this was my initial assumption
<juliana[m]>you cannot specify a specific channel for guix package, nor are you provided a choice when there is a channel conflict. nor, from my understanding, is there any way to specify a channel as there is to specify versions and outputs
<juliana[m]>idk if there are any compelling use cases for it, but a switch to specify channels might be a good idea, jic. this is what i was thinking about that initially led me to this question
<juliana[m]>is there any way to access the configure-flags list inside a g-expression without using (lambda* (#:key configure-flags #:allow-other-keys) ... )?
<mirai>juliana[m]: I don't think so, it's ok to use configure-flags within the lambda
<mirai>what can be omitted/substituted with the ungexp equivalents are out and %build-inputs (I think inputs as well)
<mirai>(assoc out …) becomes #$output, (%build-)inputs becomes (this-package-inputs …)
<ulfvonbelow>is the "gc-roots, initial" test of tests/store-roots.scm failing for anyone else? I get an error in delete-file-recursively complaining about it (that is, (string-append %state-directory "/profiles")) not existing in the first place.
<jpoiret>oho, the Inria page on free software includes a link to Guix :)
<ChocolettePalett>This is very cool, imo, GNU/Guix is getting more and more popular — even I switched to it — and that's excellent
<bobbma_>Hi! I have a problem with connecting to libvirt. I got an error: "libvirt.libvirtError: internal error: Unable to get system bus connection: Could not connect: No such file or directory". I'm in libvirt and kvm groups and I added this: "(service libvirt-service-type (libvirt-configuration (unix-sock-group "libvirt")))" to my config.scm.
<bobbma_>When i open virt-manager with sudo it connects to libvirt without problems.
<jpoiret>bobbma_: what if you restart the libvirt service?
<jpoiret>currently libvirt is missing a requirement on dbus-system, I need to push that fix
<bobbma_>I restarted it and it start working, Thanks :)
<Martin[m]>Hello how to ssh using password to a fresh guix OS ?
<Martin[m]>I've added (service openssh-service-type) to my config.scm but secure log blames that "Failed password for invalid user..."
<ulfvonbelow>I assume you've set the password for the user in question using 'passwd', and the account isn't locked?
<ulfvonbelow>And I assume that the user in question is present in your config.scm
<Martin[m]>Yes at least gnome us working well for that user
<ulfvonbelow>and of course I assume you've tried running 'ssh <user>@localhost', entering the password 3 times, and it failed each time?
<Martin[m]>ok I've found the problem... I'm using the latest guix iso and during installation for some strange reason it mixed up my username with 'real name'
<rekado>jlicht: I’m not sure which of these things to patch. It seems to me that pacote should not dismiss files with hardlinks. Seems wrong to treat files that have hardlinks any different from files that don’t.
<rekado>node-tar on the other hand probably isn’t wrong in treating hardlinks differently.
<mirai>well, tbh the documentation for that service is in the outdated style
<mirai>it should be regenerated (but the apostrophe issue is still unresolved)
<John66>Hi im sorry this question might be really stupid but I'm pretty new to guix and i was wondering if there was a way to define additional profile withing the system configuration file
<geri>jpoiret: rewriting your configs to check /etc/bash_completion on one distro, /usr/share/bash-completion/bash_completion on another and /run/current-system/profile/etc/profile.d/bash_completion.sh on yet another one is a pain
<geri>actually it seems debian team has commented out completion code in system's bashrc, huh
<mirai>preamble, IMO this is due to a few antipatterns converging at once; namely fusing define-configuration with plain old define-record-type*
<mirai>since the “main” configuration <home-openssh-configuration> is using define-record-type*, its not able to profit from serialize-configuration procedure and is manually synthesizing the config file
<mirai>quick fix is to put it as (define-maybe/no-serialization match-criteria)
<mirai>better fix is some moderate refactoring to the service; the “structure” used in mpd-service-type in gnu/services/audio.scm can be more or less straightforwardly adapted to work here
<jpoiret>i see the patch is by nicolas graves, i'll ping him
<jpoiret>i don't know enough to decide what's best :)
<vagrantc>so ... if someone acks a patch, does it still require waiting a week before pushing? it seems a bit ambiguous to me in the manual
<nckx>Nah. That would be more strict than the general case.
<nckx>Does Guix+GRUB+LUKS2 work only when booting from the encrypted drive? Surely not. And yet I get the dreaded ‘no such device’ error and a(n unusable) rescue shell.
<nckx>I think part of my pain (and failed experiments) comes from the fact that one drive is GPT and the other (boot) drive has an MSDOS partition table. Maybe this confuses grub-install if it tries to be clever^Wefficient?
<nckx>No, I meant I've only ever heard of PBKDF version 2.
<nckx>If Argon2 is a rebranded PBKDF3 tables are going to be flipped.