<sozuba>If i want networking, i should add (gnu services networking) to my config.scm right? Right now i have a minimal bare-bones installation with config -> https://termbin.com/519tr and it doesn'tshow network intefaces other than loop.
<frog>replying to some messages i see in the irc log. i hope they are real messages from not too long ago.
<frog>oriansj: see screen-locker-service-type in the manual. there's an example for swaylock.
<frog>sozuba: including a module does nothing on its own. the problem is that you're not specifying any services. %base-services is the default and it doesn't include networking other than loopback. try %desktop-services. manually check out the source code for %desktop-services if you want it to be more minimal.
<sozuba>🐸 got it. Thanks, will check the source codde as well :)
<frog>and if your interfaces dont show up even with %desktop-services, it's possible linux-libre doesn't support your hardware. but if that were the case, i dont know how you couldve gotten past the installer. so hopefully that won't happen.
<adanska>Hi guys! Just wondering: is there anyway to use ‘keyboard-layout’ in my operating system declaration to declare my keyboard layout on a wayland session like you can with ‘set-xorg-configuration’? i’m trying to use the ctrl:swapcaps option for a gnome wayland session.
<sozuba>frog thanks again. After specifying the network services, including dhcp, network works without issues.
<sozuba>is there anyway i can set ssh other than through config.scm?
<sozuba>i installed openssh, but i wasn;table to start ssh through 'herd start ssh' as i do on the live image.
<GNUtoo>Hi, can is there a way to only add users to group conditionally in machine definition?
<jpoiret>sozuba: you need to add the openssh service to your services list
<jpoiret>there should be a node in the manual about this
<GNUtoo>Here I want to add a "docker" group to that (users (cons* (user-account (supplementary-groups (list "audio", [...])))))
<sozuba>I meant the complicated part is what i want
<sozuba>if i am going to have guix as my main and only daily driver, then i should be able to get around with the basics.
<GNUtoo>For my issue, is there a way around it? Like defining a group just for i686?
<efraim>GNUtoo: it might be ugly but for troubleshooting, does it work if you change '() to (list) ?
<GNUtoo>it doesn't, it seems to ignore my if condition somehow
<GNUtoo>or at least to try to see what's inside it
<GNUtoo>I get this error: guix system: error: supplementary group 'docker' of user 'gnutoo' is undeclared
<GNUtoo>I'll try to simplyfy the code and paste it here
<efraim>it might be evaluating (target-x86-64?) at the wrong time and getting your x86_64 host machine. I'm not sure if I have a good suggestion for working around it
<GNUtoo>'(users (cons* (user-account (name "gnutoo") (supplementary-groups (append (list "wheel") (if (target-x86-64?) (list "docker") (list "postgres"))))) %base-user-accounts))' fails like that too (simplified version without extra fields like uid, etc)
<GNUtoo>That's possible indeed, I've tried the opposite with target-x86-32? as well
<GNUtoo>Ah and the above needs (group "gnutoo") as well
<GNUtoo>Is there a way to verify that, like make it print the %current-target-system or %current-system ?
<efraim>perhaps with some `(,@(if... trickery it would work
<efraim>I haven't been able to get (%current-target-system) to work with manifests
<Guest28>my shepherd has 100% cpu usage and cmds like herd status do not work anymore. can't even do a reboot or halt because of that. how would I debug this to identify the problem why shepherd requires that much cpu usage?
<Guest28>mirai: Yes this happens since I did a guix pull and reconfigured the system
<Guest28>mirai: something is wrong with shepherd anyways. halt and reboot is not working either
<sarg>Hi guix. How do I debug a "missing" substitute? I'm trying to update the system and guix starts building linux kernel (I use the nonguix version), despite the substitute to be seemingly available.
<sarg>I've found GUIX_SUBSTITUTE_DEBUG env variable, but it doesn't change anything in the output
<attila_lendvai>i once again forgot why (define %unset-value '%unset-marker%) and not just using #<unspecified>. that way the (when whatever ...) idiom could be used, because else it returns with #<unspecified>
<mirai>attila_lendvai: re using (when …), I thought about it as well and indeed would be nice
<mirai>It can be easily supported in #63985 by adding (tremove unspecified?)
<mirai>though it resembles a bit of a hack perhaps? Much nicer would be to redesign this maybe thing, since its not that well behaved when you have multiple define-maybe's for different (prefix …) configurations
<sozuba>Is it not possible to hotload a service with guix? Like, sshd.In other distros, if i install an ssh server, then i can either do service start sshdto start and service enable ssh to start at evryboot,stop status,etc. Is somethinglike that possible?