IRC channel logs
2023-06-28.log
back to list of logs
<mirai>what's the variable I can use to get the current official substitute servers <dadinn[m]><cbaines> "it looks to be ac29d37e2ffd7a85a..." <- Thanks mate, you've saved my life! 👍️ <oriansj>looks like swaylock is borked: [source/pam.c:17] swaylock is setuid, but was compiled with the PAM backend. Run 'chmod a-s swaylock' to fix. Aborting. <mirai>is swaylock used as a home service or as a system service? <mirai>it keeps popping up from time to time here, if it's the latter then it'd be nice if someone could write a system test for it <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 :) <sozuba>why is my taging frog not showing up? its strange <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. <efraim>ACTION has probably had enough coffee for a bit <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", [...]))))) <GNUtoo>For instance (supplementary-groups (append (list "audio", [...]) (if (target-x86-64?) '("docker") '()))) fails for 'guix system build -s i686-linux' where I've no docker service <jpoiret>sozuba: no, unfortunately it's not very clear, but this is the home service to set up the openssh *client*, not server <GNUtoo>sozuba: it might be possible to do that though the usual way to do it is through config.scm <sozuba>jpoiret: Thank you again. Will check it out. :) <sozuba>GNUtoo: yes I am aware of how to do this through config.scm, but i wanted to uderstand how to do it without <GNUtoo>sozuba: you need to look if you can launch the sshd daemon manually <GNUtoo>for instance through some service <GNUtoo>but then the issue is that that daemon might not run as root <GNUtoo>I've not tried to do that myself though <GNUtoo>So I've no idea if that can work or not <sozuba>GNUtoo: ah okay, i am doig all this through root, as i amjust leanring about guix. why do you think it might not start as root? <jpoiret>what I mentioned is for setting up using config.scm <sozuba>pre-defined setting in the ssh config preventing it from doing so? <jpoiret>there's no good way of adding shepherd services without using your config.scm <efraim>the ssh service is included in the install image, it just isn't set to start automatically <sozuba>jpoiret: oh okay, i amawre of setting it rhough config.scm. I wanted to do it manually while in the system. <jpoiret>you'd have to start it manually as GNUtoo mentioned above, not through shepherd <sozuba>efraim: yes.I am able to start and use ssh in the live image. I want to use ssh on my freshly installed system without using config.scm,just manually <GNUtoo>sozuba: why don't want to use system.scm? is it because Guix runs on top of another distribution? <sozuba>jpoiret: okay, will check how to do that. <sozuba>GNUtoo: No, I am just taking the time to understand how to do things in guix. This is one of the things <efraim>there are ways to add service definitions to a running shepherd process, but if you want to run the ssh service you really need to just add it to config.scm <sozuba>efraim: for now i just want to do it without config.scm <sozuba>i will try what GNUtoo and jpoiret advised <GNUtoo>sozuba: well what I advised is way more complicated than modifying system.scm <GNUtoo>Unless you just launch sshd by hand with sudo sshd <some arguments> <sozuba>GNUtoo: yup,that;s what i want :D <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 <GNUtoo>I need to dig into it as well for a script <GNUtoo>I've a script that detects dependencies issues for i686 but it only runs on i686 Guix installations <GNUtoo>The issue is if I do that: (if (target-x86-32?) (list "postgres") (list (%current-target-system))) it prints that: <GNUtoo>guix system: error: supplementary group '#f' of user 'gnutoo' is undeclared <efraim>(%current-target-system) returns a triplet or #f <GNUtoo>current-system reports x86_64-linux though <GNUtoo>ah ok, not cross compiling => #f <efraim>that's why (or (%current-system)(%current-target-system)) works so well <GNUtoo>I understand now, this construction looked strange <GNUtoo>And here I guess that the username field doesn't need packages so maybe that's why it can't use target-x86-32? properly <GNUtoo>While the services and packages fields do both need packages <GNUtoo>Thanks a lot for all the help and infos <GNUtoo>Maybe there is a way, like defining a dummy package that changes some characteristics depending on the target architecture and then detecting that and build the if on that. <GNUtoo>I'll look into that later on though <GNUtoo>or maybe a less hackish way would be to use some with-store like function to just compute the if <cbaines>ngz, tex-team-next builds have now started :) <GNUtoo>efraim: hi again, in my case I found that the field that worked had '(thunked)' in '(define-record-type* <operating-system> operating-system' in gnu/system.scm <GNUtoo>I also didn't manage to get the real target from within the operating system scm file <GNUtoo>So maybe the way to go is to send patches to add (thunked) to users and groups as well? <efraim>GNUtoo: I honestly have no idea for this <ngz>cbaines: (re "tex-team-branch") Nice! <Guest28>if i create an issue, can i close it as well or only maintainers on issues.guix.gnu.org? <jackhill>Guest28: yes, anyone can close an issue by sending mail to #####-done@debbugs.gnu.org <Guest28>so if you create a bug I can close it? <jackhill>I suppose abusive users could be modierated by the GNU postmasters. Also bugs can be reopened (needed for more than just abuse) <Guest28>does the mail require any specific message or can i make an empty message? <jackhill>I think it can be empty, but it's probably nice to include a message explaining why you're closing the issue. <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? <mirai>Guest28: did you run a system reconfigure? <rekado>spacecadet[m]: are you using a git checkout for Guix? Or is this ~/.config/guix/current/bin/guix? <rekado>is GUILE_LOAD_PATH or GUILE_LOAD_COMPILED_PATH set? <spacecadet[m]>rekado: GUILE_LOAD_PATH yes, GUILE_LOAD_COMPILED_PATH yes, GUIX_PACKAGE_PATH no, not using a git checkout for guix, using ~/.config/guix/current/bin/guix <nckx>How would I prod Guile for more details on ‘error: failed to load '/gnu/store/…-profile/share/guile/site/3.0/git.scm': Function not implemented’ ? <janneke>nckx: have you tried something like; guild compile /gnu/store/....git.scm ? <nckx>Worse, I've never even run guild. <nckx>Time to cross the threshold. <nckx>It… succeeds? ‘wrote `/home/nckx/.cache/guile/ccache/3.0-LE-8-4.6/gnu/store/…-guile-git-0.5.2/share/guile/site/3.0/git.scm.go'’ <nckx>Hmm, I think I should re-./bootstrap this thing before chasing rabbits. <nckx>This is all fallout from not being able to boot a system generation that's not several months old because of a kernel bug, I'm sure. <janneke>well, /me found it reduce the signal to noise ratio considerably ;) <nckx>So there wasn't a big hoo-hah in my absence? <nckx>Hello my eternally single friend. <nckx>ACTION heads to the logs to find out what happened to moldy-sushi or whatever it was called that day. <nckx>…wait, how will I grep for it. Never mind. <unmatched-paren>Okay, the name was probably a bit confusing for anyone seeing it for the first time, that I'll concede. <unmatched-paren>and it probably would have been less noisy had it only acted on issue numbers rather than all links <ieure>Kolev, Can it? Yes. Does it? I do not know. <ieure>You can run it in Docker, that's how I run mine (not on Guix, though). <Kolev>So Jellyfin is bad? Sjdjdjfjdjd <janneke>well, it depends on a language that cannot be bootstrapped <Kolev>janneke: but jellyfin is free software <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: what was your original idea? I recall you mentioning some SRFI <mirai>Guest28: it might be that your reconfigure upgraded shepherd itself. it's been observed that some issues can occur. Try physically rebooting the machine <mirai>iirc Guile does not have it (yet™) <mirai>perhaps you could try getting it into Guile? might come in handy, perhaps for a future revision of define-maybe :) <attila_lendvai>mirai, IIRC it works fine on Guile. what's not trivial is packaging it as a guix package, and then adding it to guix-the-cli-tool as a dependency. <mirai>you're much more likely to find less resistance if its part of Guile itself <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? <sozuba>mirai, ah okay. Understood. Thanks :) <mirai>your system only knows about the services you typed in the (services …) field <mirai>or rather, shepherd is only aware of those <sozuba>got it. Is there any plans to make hot loading available in the future? <frog>anybody here have an opensmtpd email server on guix? some update last week, probably the opensmtpd version update, causes opensmtpd to segfault in libtls.so now.