IRC channel logs


back to list of logs

<Jeremy[m]>Hey philip
<jackhill>I wish guile would tell me which field I has specified invalidly:
<maximed>jackhill: Check 'source'
<robin>jackhill, yeah, i'd consider that a (wishlist-priority) bug. i've run into that too
<singpolyma>I know this is more a guile question, but is there a way to do multiline strings?
<nckx>singpolyma: Sorry to answer with a link, but I just happened to answer that question earlier today:
<nckx>Although if you just want a plain string, you can just write "a\
<nckx>b" or "a
<nckx>b" depending on whether you do or don't want the newline in your string.
<nckx>You probably knew that already though.
*nckx → very sleepy 😴💤 time, good night.
<singpolyma>thanks, that was helpful :)
***califax- is now known as califax
***lukedashjr is now known as luke-jr
<jackhill>maximed: thanks, but I'm still not seeing it
<jackhill>ah, found it! My hash and file-name weren't inside the origin field
<iskarian>sneaky parens!
<ixmpp>guix system: warning: Consider running 'guix pull' followed by
<ixmpp>'guix system reconfigure' to get up-to-date packages and security updates.
<ixmpp>But... i just did!
<ixmpp>Why do i always get this warning
<apteryx>nckx: I think the aircrack-ng driver has been failing since moving from 5.13 to 5.14
<apteryx>failing being; building successfully but not installing anything to its output
<apteryx>I'm getting my first taste of out-of-tree drivers. Fun.
<iskarian>apteryx, do you perchance have access to a log of a successful aircrack-ng build? (one that actually works)?
<iskarian>I'm suspecting the DEPMOD warning, but I don't know enough about linux kernel modules to tell if the warning is "normal"
<iskarian>ah, I misspoke, it was a "CONFIX_X86_X32 enabled but no binutils support" warning
<iskarian>"CONFIG_X86_X32: Include code to run binaries for the x32 native 32-bit ABI for 64-bit processors. An x32 process gets access to the full 64-bit register file and wide data path while leaving pointers at 32 bits for smaller memory footprint. You will need a recent binutils (2.22 or later) with elf32_x86_64 support enabled to compile a kernel with this option set."
<iskarian>it looks like we've been building the kernel with this for a while, though
<apteryx>yeah, I don't get why we get the warning, binutils should be available (which version though?)
<apteryx>(see %final-inputs in (gnu packages commencement))
<apteryx>the Makefile in the aircrack-ng project has its own install prefix variable, but we don't use it AFAIU
<apteryx>(we use the kernel's own module build system Makefiles)
<apteryx>not sure why it stopped working
<Guest53>I have had some decent success with Cuirass for my personal project, I have a bunch of questions however. I couldn't get cuirass version currently shipped with guix running well (it errors out with an mkdir problem, upon evaluating a specification). So I had to go with 'guix environment cuirass' with whatever was in the git repository and that
<Guest53>worked better. The web interface is a little bizarre, with some of the links not working (where I can't see the raw log).
<Guest53>Anybody here uses or works with cuirass?
<Guest53>I am a guest here, but please reply even if I am logged out, I will check the irc log
<nckx>Good morning Guix!
<nckx>iskarian: That warning's fine. I mean, X32 is so esoteric we probably should just disable it, but it's not related to…
<nckx>apteryx: …soo I might've fallen asleep whilst testing ;-) (these rtl8812au things take ages to build) but have pushed the fix to master now. Thanks.
<nckx>ixmpp: Sounds like you're running the wrong guix? What does ‘type guix’ say when you get that error?
*nckx away.
<bdju>is there info anywhere on setting up pipewire on guix system?
<bdju>any links to info would be appreciated. didn't find any mention of pipewire in the manual or cookbook online
<bdju>I'll check back later
<Jeremy[m]>bdju: This
<Jeremy[m]>Pipewire is really nice
<Gooberpatrol66>bdju: look up rde, it has a way to enable pipewire
<Gooberpatrol66>bdju: i've been trying to copy its code into my config.scm so i don't have to install it
<fsg>guys, the python package is looking for a libstdc++ at a glibc package path and missing, I did search for the so in the store and it seems to exist only under a gcc package
<haugh[m]>bdju: Jeremy
<Jeremy[m]>Hello civodul
<Jeremy[m]><haugh[m]> "bdju: Jeremy https://git...." <- Thanks. Is running Pipewire as a PulseAudio server supported?
<Jeremy[m]>Like, using pipewire-pulse instead of PulseAudio
<civodul>hey, Jeremy[m]
<civodul>Hello Guix!
<b3>Hi, has anyone had success running X as a regular user without a display manager? I thought it would be as simple as using the `xorg-server-service-type` service within my configuration and installing the `sx` package, but when I run `sx` my input devices don't work and in the Xorg log there's a lot of permission denied errors
<razor[m]>b3: xorg xinit
<b3>razor[m]: Do you mean I should use xinit instead of sx?
<razor[m]>i use wayland, cant look at the moment
<maximed>sneek: later tell jackhill: what do you think of
<sneek>Will do.
<dhruvin>Anybody who is using guix home, how did you extend home-bash-service-type?
<dhruvin> this works fine in repl, but fails when I `guix home build` it.
<newsettler65>Hi. I am trying to install guix system on ryzen 3200 g pro with amd apu vega 8, but install stops on nouveau package, and nothing happends.
<civodul>newsettler65: hi! could you grab a screenshot?
<efraim>dhruvin: I haven't run 'guix home reconfigure` yet but here's what I have
<dhruvin>Oh yes, I could specify all bashrc configuration in one place, i.e. in home-bash-service-type's home-bash-configuration itself.
<dhruvin>I was trying to organize it in a different way. Each package I use will have one service, which will extend home-files-service-type, to populate configuration files for that package and home-bash-service-type to alter bash[rc|_profile]. But I believe I will go with the way you have suggested for the time being.
<dhruvin>efraim: thanks
<bonz060>Hi guix!
<bonz060>Say I have start a container:
<bonz060>: guix environment --ad-hoc --container --expose=/home/bonfacem redis coreutils bash -- redis-server /home/bonfacem/backup/redis.conf
<bonz060>and I get the pid of that container using:
<bonz060>: ps aux | grep "redis-server /home/bonfacem/backup/redis.conf" | cut -d' ' -f2
<bonz060>How do I interact with that container using the pid. I thought that according to:, if
<bonz060>If I ran:
<bonz060>: guix container exec 30587 echo $GUIX_ENVIRONMENT
<bonz060>I'd be able to get something. Instead I get a "" which means I'm
<bonz060>executing that in the container's context. I'm I missing something?
<bonz060>*which means I'm not executing that in the container's context
<bonz060>Has anyone tried:*? (which AFAICT is experimental)
<bonz060>I'm trying to run redis in a container; and to interact with it from outside the container...
<jpoiret>if you just do `guix container exec PID /bin/sh` do you get a shell?
<bonz060>jpoiret: yup. Though it's the shell from the system; not the container (I think)
<jpoiret>why do you think you'd be able to get something by echoing $GUIX_ENVIRONMENT though?
<jpoiret>if your PID1 is redis-server, no guix env variables should be ever set up, right?
<jpoiret>does `pstree` show that shell as running under the redis-server?
<jpoiret>in guix, env variables are mostly setup through /etc/profile sourcing and the like (xinitrc for graphical sessions), which doesn't happen here
<bonz060>jpoiret: My (layman's) interpretation of "Execute a command within the context of a running container) is that running a command would be akin to be doing so from within a container...
<jpoiret>yes, i understand, but inside the container, the env variable GUIX_ENVIRONMENT isn't set
<jpoiret>if you use the --link-profile option of guix environment --container, you should be able to have echo $GUIX_ENVIRONMENT output something (make sure you're not in a directory where .guix-profile already exists though)
<bonz060>jpoiret: let me try that out...
<abrenon>hello guix !
<bonz060>jpoiret: I still get a blank. I don't think it works how I intend it to work. I reckon I'll just run everything inside a container in one swoop instead of having to interact with that container from outside...
<jpoiret>bonz060: if you guix container exec PID ps -aux, do you see all the host processes or just the container's view of it?
<jab>morning #guix people!
<jpoiret>no you are actually right, guix container exec doesn't actually execute in the container
<jpoiret>i just ps -aux'd with guix container exec and it did show all of the host processes
<jpoiret>on another note, when i switch guix branches i often need to `make clean` and `make` everything again, isn't there any smoother (and faster) way to do it?
<efraim>git worktrees
<efraim>a separate path for each of the checked out branches
<efraim>using the same .git folder
<jpoiret>truly a wonderful idea
<bonz060>jpoiret: I can see the host's processes...
<bonz060>FWIW I'm on guix v guix (GNU Guix) a939011b58c65f4192a10cde9e925e85702bacf4
<jpoiret>seems like guix container doesn't work as it should i guess
<bonz060>Ah I see... I reckon that's why the docs mention it as experimental. Should I file a bug against it?
<jpoiret>well, i think so
<bonz060>Cool. Let me go ahead and do that. Thanks for the help. I appreciate it ;) \m/\m/
<sodi[m]>Hello friends! I'm new to Guix.
<sodi[m]>I've been using the Guix System for about a month and it takes up a lot of hard drive memory, what are the commands to free up space?
<abrenon>two of them actually
<abrenon>first, if you've tested many configurations in the begining, adding and removing software as you made yourself comfy, you may have many older system *generations* around
<abrenon>these take some space because guix allows you to revert back to any of them (they show up in grub's menu, and you can list them with guix system list-generations)
<abrenon>once you've decided which you didn't need any longer, you can use guix system delete-generations on them
<abrenon>this will only tell guix it can stop caring, and they become elligible for garbage collection, which is triggered separately by calling guix gc
<abrenon>you may want to update your system before that
<abrenon>because updating sometimes requires pulling temporary dependencies, for instance if the packages you need aren't available or if there is some content that needs to be generated with tools you haven't explicitely requested in your environment
<abrenon>(I think I've seen one package using pandoc to output some documentation, for instance, so if you didn't specify pandoc to be installed, it would be removed by gc, but pulled again when you update… so if you're going to do a little bit of cleaning and you can still afford the space, you probably want to upgrade first)
<efraim>I don't think 'guix home build -n' works
<tricon>I have a machine manifest for use with guix deploy. After a successfuly deployment, if I only change the IP address in static-networking-service and redeploy, the networking-* service for the given interface is not restarted in order to affect the new IP address. Is this expected behavior?
<civodul>tricon: hi! it's expected in the sense that restarting it would restart services that depend on it, which may or may not be what you want
<tricon>civodul: I had a feeling that would be the case, which makes sense. I read through a mailing list thread re: such. Is there a recommended way to restart the service? Good ol' ssh + command?
<civodul>tricon: yeah, ssh + command
<tricon>Got it, thank ye for the clarifications!
<civodul>i'd like to add a way to tell "guix deploy" to, say, always restart a given set of services upon success
<tricon>Yeah, this is the thread I read through:
<tricon>Some good ideas.
<tricon>Definitely not an easy thing to tackle in total.
<roptat>hi guix!
<tricon>Howdy, roptat!
<civodul>hey roptat!
<civodul>tricon: right, though this one is about "guix system reconfigure", which is another story
<roptat>ah I forgot to do it yesterday... we're missing a few files in po/guix/, notably the new "guix home" related files
<abrenon>hey roptat !
<civodul>roptat: yes, i was pretty sure that'd be the case :-)
<attila_lendvai>is anyone here by any chance familiar with the updating of the bootstrap binary guile in guix? it's very old (2.0.9), and it lacks something i wanted to use. if it's simple enough, i'd appreciate if someone would do it. details in:
<civodul>attila_lendvai: hey :-) like i wrote on #bootstrappable, we probably won't update the bootstrap Guile
<civodul>mostly because we try not to change those big binary seeds, because they're opaque
<abrenon>roptat: does that mean more untranslated strings added to weblate ?
<roptat>yes, but not yet
<roptat>actually, we're missing a few more files
<attila_lendvai>civodul, oh, sorry, i missed that line. all i need is srfi-43, vectors.
<ixmpp>> nckx wrote:
<ixmpp>> ixmpp: Sounds like you're running the wrong guix? What does ‘type guix’ say when you get that error?
<ixmpp>Ah, right you are. I'm running it through doas when i reconfigure the system, so it's not using the latest one
<roptat>I've sorted the files in our and greped through the files to find \([GN]_, and found missing files and files from that had no translatable strings
<abrenon>I also see that many sentences are split in several independant strings in weblate, it makes it a bit harder to translate
<abrenon>is that a new way to do it ? I don't remember I had seen so many of them last time I looked at the translations
<roptat>for the manual? that's a bug in po4a indeed
<civodul>attila_lendvai: i'm afraid you'll have to do without it
<civodul>what part would you need specifically?
<roptat>I made a diff between what I would expect in and what's currently in it:
<attila_lendvai>civodul, simple vector stuff for constant time access and sorting. it's not crucial, though. see the issue for details. it's about picking collisions from the highes versioned package
<abrenon>I see. So should they be merged-back together ? can one do that in weblate ?
<roptat>no, because then po4a will be lost and won't translate these sentences at all
<roptat>we have to fix po4a
<roptat>do you know perl? :D
<abrenon>I'm afraid I do
<abrenon>although it's been a while since I haven't had any practice
<roptat>well, there are all these bugs that need fixing:
<abrenon>but I still have nighmares with $ and @ sigils chasing me in a very dark forest, from time to time
<abrenon>so that's a start
<roptat>I think this is the bug you're seeing:
<awb99>I need to do some debugging of UDEV rules.
<awb99>Is there any way how I can see a logfile or a config of the herd udev module?
<abrenon>it could be yeah, it looks familiar
<roptat>another I've seen (but forgot to report) is with multiline lists
<abrenon>I guess I'd have to grep guix repos for the specific split string I have in weblate, but I suppose I would find this trailing @
<roptat>it will give you the first line to translate, and then the rest in a separate unit
<roptat>but it doesn't seem to be always the case, so it might depend on the context
<abrenon>well I'll try to look at it but I don't have enough time right now
<abrenon>I'm still recovering from two very intense weeks and I'm late on a lot a stuff so I don't think it's exactly the right time to start diving into perl code sorry
<abrenon>(plus, I still have a patch to add ~6 ocaml packages I must work on)
<roptat>I understand don't worry
<abrenon>: )
<roptat>these bugs have been there for years now, they can wait a little bit longer :)
<abrenon>that's a relief
<jpoiret>anyone experienced with the cargo build system? i'm building rust-bitflags and it seems that it is searching for Cargo.toml in the root of the build dir, whereas it seems to be unpacked in guix-vendor/rust-bitflags-***.crate
<apteryx>nckx: oh, neat! Yeah it takes age because it builds without -j
<apteryx>we should fix that (I opened a bug about it)
<apteryx>(about the aircrack-ng kernel module)
<apteryx>neat fix
<apteryx>I'll close my upstream bug report
<roptat>what's "@*" in texinfo?
<roptat>ah, it's a line break
<nckx>Good morning, protectors of the secrets of package management!
<nckx>Actually we all suck at protecting it…
<nckx>…so just ‘good morning’ I guess.
<nckx>apteryx: Uhuh, I thought the same. Do you have a patch yet?
<apteryx>no! I opened an issue though
<apteryx>(that's all I seem to do, eh)
<nckx>No, that's useful.
<nckx>I wouldn't have been aware or motivated if I hadn't spent an hour waiting for my CPU at 12.5% ☺
<tricon>nckx: Builds character ^_^
<apteryx>uh, weird output while guix lint'ing: fetching CVE database for 2021....1 [cve]...
<apteryx>a -G for --no-grafts would be useful. That's one option I type too often.
<apteryx>(especially when using --check -- I don't really care to retry the grafting derivation)
<civodul>apteryx: it's an option we shouldn't be using too often though :-)
<nckx>#:make-flags (list "-C" (string-append (getcwd) "/" ,name "-" ,version "-checkout") …)
<nckx>How likely am I to be run out of town for this?
<nckx>It allows using the default 'build phase in the rtl* linux-modules…
<nckx>…not worth it, never mind.
<civodul>looks like 9c5e5ca1c0de56a0d5b2b924de10548172095b58 broke tests/lint.scm (the stackage test)
***duds-_ is now known as duds-
<nckx>civodul: Why are you still seeing this, though? I thought it might still've been in the packaged ‘guix’ but it's not.
<civodul>nckx: ah, maybe i just need to pull?
<civodul>that's a good idea
<nckx>civodul: Yes!
<civodul>ah indeed
<civodul>things are moving too fast, my friend!
*civodul has to go
<noisytoot[m]>Gajim seems to be broken in the latest Guix:... (full message at
<guixy>hi guix
<guixy>I'm having trouble getting `guix pull` to work.
<guixy>Raspberry pi with raspberry pi os
<guixy>SSL certificate error.
<guixy>Haven't run `guix pull` in a long time.
<maximed>guixy: What's the value of $SSL_CERT_DIR and $SSL_CERT_FILE?
<guixy>`SSL_CERT_FILE=/etc/ssl/certs/ SSL_CERT_DIR=/etc/ssl/certs guix pull` didn't work.
<maximed>TheseThe second one seems wrong, I would expect ~/.guix-profile/etc/ssl/certs/ca-certificates.crt
<maximed>*TheseThe -> The
<maximed>I don't know if "guix pull" uses SSL_CERT_FILE though
<maximed>Maybe try ‘env --unset=SSL_CERT_FILE --unset=SSL_CERT_DIR guix pull’, to use the system's certificates instead of the user's certificates?
<maximed>(Maybe the certificates are out-of-date)
<guixy>After `SSL_CERT_FILE=/home/pi/.guix-profile/etc/ssl/certs/ca-certificates.crt` I'm getting `guix pull` to work. Thanks!
<guixy>Now to figure out why SSL_CERT_FILE is wrong...
<guixy>`Authenticating channel 'guix', commits 9edb3f6 to e2c58b9 (3,272 new commits)...`
<guixy>I should put that raspberry pi away for another year and see if I can get it over 9K.
<guixy>Where should SSL_CERT_FILE be set in a foreign distro?
<maximed>guixy: it seems like you have nss-certs installed
<maximed>because SSL_CERT_... points to ~/.guix-profile/...
<maximed>so maybe "guix pull" followed by "guix package -u" and logging in again is sufficient
<guixy>I had a custom script setting stuff up incorrectly and fixed it.
<guixy>I have a system that separates all my installed stuff into profiles. That way one package build failure doesn't prevent an upgrade.
<robin>are all glibc symbols really supposed to be listed in the info dir menu? that's ~2000 entries...
<guixy>`guix environment --pure --ad-hoc info-reader glibc -- info | wc -l`
<guixy>Should we make a doc output?
<guixy>That way glibc's info won't clutter the info dir
<guixy>More like 2064 entries.
<guixy>Is this the case on other systems?
<guixy>If so, it's a glibc problem...
***ardon- is now known as ardon
***herlocksholmes7 is now known as herlocksholmes
***yjftsjthsd3 is now known as yjftsjthsd
***irfus- is now known as irfus
***lukedashjr is now known as luke-jr
<awb99>with sheperd/herd is there a way how I can get the ACTION commands that are available for the services?
<awb99>and for syslogd, where can I see the logfiles?
<roptat>awb99, /var/log
<robin>awb99, there is "herd doc $FOO list-actions", but that returns () for many services (maybe the root service's actions are mostly responsible for manipulating other services?)
<roptat>interesting, herd is telling me "Unknown keyword. Try 'doc root help'.", but "herd doc root help" also gives me that message ^^'
<muradm>hello guix
<robin>"herd doc root" gives line of help
<robin>also stop/start methods are apparently separate from other actions, so maybe that's why list-actions => () for many services
*robin wants to write a little shepherd gui someday
<robin>(...but not before there is a guile-cl that can run mcclim ;))
***isolier4 is now known as isolier
***Exagone313 is now known as Exa
<Jeremy[m]>guix is so cool!
<Jeremy[m]>(I'm reading through the manual in an attempt to understand Guix better)
<robin>guixy is gone for now but i'm not so much concerned about documentation size as cluttering the info dir. it's been a while but i think e.g. debian just has a single "libc" menu item for the manual
<rekado_>robin: more power to you! I’d love to see a Guile-based mcclim!
<rekado_>I was on a bad Wifi today and now something has cached failed hostname lookups.
<rekado_>I tried “sudo herd invalidate nscd”, but icecat still tells me it can’t find the domain.
<rekado_>(also restarted nscd and icecat, but to no avail)
<rekado_>am I just holding this wrong?
<maximed>guixy: I've seen that (the many glibc entries) on Debian I think
<maximed>rekado_: IIUC, icecat has its own DNS resolver
<maximed>The one provided by glibc doesn't understand SRV records, and cannot be used asynchronuously, so Firefox might have good reasons to
<maximed>(not 100% sure if Firefox has its own DNS resolver, and whether those are the reasons)
<radvendii>Is there a way to import multiple sources in a derivation?
<rekado_>hmm, turns out that chromium also doesn’t resolve the domain
<maximed>radvendii: Do you mean using multiple sources in a package?
<radvendii>i think so
<rekado_>radvendii: we usually add extra sources as “origin” values in the “native-inputs” field.
<radvendii>ohhh interesting. that's probably what i need
<rekado_>and then we add build phases to unpack those and/or move them in the right place
<rekado_>for git repositories that have submodules you can tell it to recursively check out the repository.
<maximed>derivations are a low-level thing that origin records, packages, local-file objects, ... are turned into
<maximed>it's not something you usually manipulate manually when writing package definitions
<maximed>(just a note about terminology)
<radvendii>ah, okay, thanks. yeah i was using the wrong term
<rekado_>hmm, on core-updates-frozen the problem with building gnumach is exactly the same as the problem I had building 389-ds-base
<rekado_>it’s a linker problem that looks like this: ld: libkernel.a(io_perm.o):/tmp/guix-build-gnumach-1.8-1.097f9cf.drv-0/source/./kern/cpu_number.h:34: multiple definition of `master_cpu'; libkernel.a(model_dep.o):/tmp/guix-build-gnumach-1.8-1.097f9cf.drv-0/source/./kern/cpu_number.h:34: first defined here
<rekado_>dozens of lines like this
***modula is now known as defaultxr
<jab>Hey guix! I saw that guix home was merged recently. Does anyone want help in writing the guix blog post announcing it?
<radvendii>How do I run the usual unpack phase on those `origin` inputs?
<aadcg>I package a program with guix package -f file. I can now run it as a user. But how can I define it in such a way that the guix system is aware of it?
<aadcg>I want to add it to my system configuration
<breatheoutbreath>Hello! I am trying to get dwm on Guix SD. In my /etc/config.scm, I have `xorg` and `wm` listed in `use-service-modules`. `dwm` is listed in `(packages (append (list dwm ...)))`
<breatheoutbreath>When I run `dwm`, I get "cannot open display".
<jab>breatheoutbreath what's dwm?
<breatheoutbreath>When I run `exec dwm`, I am logged out.
<breatheoutbreath>jab ^
<jab>breatheoutbreath ahhh. That's the wm for adults. The only config is via editing source code. :)
<yang>Hello, does GUIX support mips/el port ?
<breatheoutbreath>jab: :)
<robin>if icecat is like firefox, it has its own DNS-over-HTTPS resolver by default (which is preferable if you trust cloudflare more than your ISP; as a USian i certainly do)
<jab>breatheoutbreath I had issues with sway working when I was using %base-services...when I changed that to %desktop-services, I found that I could suddenly use sway. :)
<breatheoutbreath>jab: I'll try that, thank you
<robin>systemwide DoH would be a nice option to have but would probably require a new nss backend
<jab>breatheoutbreath yup best of luck. !
<jab>yang: If it supports it, there's only one or two developers using it...You're kind of on your own using MIPS in guix land...
<robin>(or DNS-over-TLS, but i guess DoH is more popular because of firewalls, etc.)
<yang>jab: ah ok
<yang>jab: I won't try then
<jab>yang: You'
<jab>You're probably better off with trying debian.
<jab>if you want to use MIPS
<roptat>aadcg, I see two possibilities: you can create a channel with that file, or convert it to a module you would import with "guix system reconfigure -L moduledir my-config.scm" or similar
<jab>Also, I am defining more datastructures for the opensmtpd service. It's actually super fun now that I know how to do it.
<podiki[m]>perhaps more of a python question, but relevant to guix: how to get the path in python but without following links all the way to /gnu/store?
<lispmacs[work]>has somebody done an introductory video or article on Guix-home?
<podiki[m]>in other words, wanting to get /path/to/profile/bin/pythonthing rather than ending up with /gnu/store/....-package/bin/pythonthing
<podiki[m]>lispmacs[work]: I think there are some on youtube from the creator
<jab>lispmacs There is documentation in the manual...But not a blog post yet...
<roptat>hi soheil
<awb99>I am trying to use the package "trezord-udev-rules". I guess that it adds udev rules. But I have no idea how I add them to guix udev service. Any ideas?
<roptat>awb99, I think you have to add a service to extend udev with these rules
<jab>awb99 What's your use case? And what does the package trezord-udev-rules do?
<roptat>maybe something like (simple-service 'trezor-udev udev-service-type (list trezord-udev-rules))
<awb99>trezor is a hardware device.
<awb99>In order to access it from chromium (or from other apps), it needs either a trezor udev bridge or the trezord running.
<awb99>I think the udev rules are there, so that it does not need to run trezord.
<awb99>I think it is either or.
<awb99>But the package is not at all documented.
<awb99>So I am somehow lost.
<roptat>it's similar to other *-udev-rules packages (like android-udev-rules)
<pkill9>yea you need a service to add to udev rules
<roptat>this is how I use it, but you can probably use the simple-service too, like I show you above.
<soheil>Sorry :/
<awb99>thanks roptat + jab
***soheil_ is now known as soheil
<jonsger>hm how can I use gcc-9 on core-updates-frozen to build a package? Setting ("gcc" ,gcc-9) in native-inputs still leads to a gcc-10.3 build
<jonsger>its with cmake-build-system
<jab>jonsger that's weird....
<jab>jonsger: look up the guix source code for where gcc is defined. You might need to call it "gcc9" or something.
<awb99>how can I find out in which /gnu/store directory a package did get installed to?
<jonsger>I wanna have c++ from it, but the gcc packages are a bit strange...
<roptat>awb99, you can see it as the result of "guix build the-package"
<awb99>does this rebuild the package?
<roptat>if it doesn't exist yet, yes
<roptat>I mean, if it hasn't been built or downloaded before
<awb99>cool! thanks roptat
<podiki[m]>awb99: also guix package --list-installed (though the guix build command is often what I use too)
<jab>roptat could you also just $ which package name? and then maybe an ls on the output of package name, which may provide the symlink?
<awb99>cat /gnu/store/gi4bxa4zzs80pbafzxlrd0mm8cnfmhm0-trezord-udev-rules-0.0.0-0.bff7fdf/lib/udev/rules.d/51-trezor.rules
<roptat>yeah if the package provides a binary, you can do something like "readlink -f `which the-package`"
<awb99>I did find the trezord-udev-rules package dir.
<awb99>And in there in the udev rules, it uses GROUP="plugdev"
<awb99>so I guess I have to create this group on my guix sd as well ?
<roptat>(and, it's called "guix system", not "guix sd" anymore ;))
<jab>I have been playing with guix records...define-record-type* is awesome! I've been messing with the sanitize option with (thunked).
<jab>Basically, I
<jab>I had a record fieldname, whose value is dependent on another fieldname's value. So, I am using sanitize to calculate one fieldnames value based on other fieldname's value. It's super awesome!
<jab>I do think guix records define-record-type* should support some sort of (sanitize bool), (sanitize string), or (sanitize <some-record-type> option.
<jab>I've re-writing a lot of the same code for some of the sanitizers.
<thung[m]>jab: link your git please
<jab>thung[m] : I'm at work now and my work blocks the git repo that I use...but it's
<jab>It's the linode configuration repo
<jab>The file is opensmtpd-records.scm
<jab>The file with the same something like linode-current.scm is my current configuration for
<civodul>jab: i thought we could have (type string), etc.
<civodul>'sanitize' is more flexible, but that means you need more boilerplate to do type checking
*rekado_ fixed gnumach on core-updates-frozen
<rekado_>turns out the problem is that GCC 10 defaults to -fno-common.
<civodul>rekado_: yesss!
<civodul>oh right, core-updates-frozen is full of -fno-common fixes
<jonsger>any idea how to build a package with g++@9?
<jab>civodul I'm game for (type string)! That would be awesome!
<awb99>what do you guys use in order to debug a new system definition?
<awb99>I guess the operating system is just a big data strucuture
<awb99>so I guess it should be possible to put it into a variable inspector ui ?
<civodul>jonsger: the easiest way is to add gcc-9 to its 'native-inputs'
<jab>civodul would (type string) be transformed into a (sanitize (lambda (value) (if (string? value) value (throw 'bad! value))))) or something like that?
<jab>awb99 What problem are you having?
<jab>and a good trick is to use diff /run/current-system/configuration /etc/config.scm
<awb99>my problem is, that instead of building a new system, and then just starting it (which takes 5+ minutes), I would like to quickly verify if I did all ok.
<jonsger>civodul: I tried that, but it has no effect :(
<civodul>jab: yes, either that unless the check can be done at macro-expansion time (for literals)
<jab>Ohhh, you have the macro check it for you....I hadn't thought of that. That would probably be a more elegant solution.
<jab>awb99 You could always do a guix system vm
<awb99>thats a great idea jab!
<jab>awb99 I do it for my linode server... :)
<awb99>I really wish it would be easier to get guix distros hosted somewhere.
<awb99>where the guix system boots up out of the box,
<awb99>without having to first install another os.
<jab>We have a digital ocean config option I believe. I've never used it.
<jab>I suppose that we need to create a libre linode/digital ocean powered by guix. we could really support guix system vms that way!
*janneke tries guix home with ssh...
<janneke>how does this work? error: home-ssh-service-type: unbound variable
<awb99>I have to run a binary from "trezord" package as a service.
<awb99>The package "trezord" does not define a service to run.
<janneke>wondering if it's already using guix service types...
<janneke>error: (openssh-configuration ... extraneous field initializers (extra-config)
<awb99>Does anyone have an example how I add a service to guix ?
<civodul>janneke: howdy! i think we're missing the ssh module that was in the other repo
<jonsger>awb99: thats the only service I added:
<janneke>civodul: ah
<janneke>also, i'm pretty happy with my ~/.config/shepherd/init.scm,init.d/ setup; wondering how that translates to guix home
*jonsger found the right patch to build with gcc-10...
<civodul>janneke: yeah i haven't translated yet
<janneke>ok, now i'm getting...
<janneke>guix home reconfigure home-janneke.scm --verbosity=2
<janneke>guix home: error: mkdir: Permission denied
<janneke>the error message seems kinda constant :-/ wondering what directory it tries to make?
<awb99>jonsger: can I add directly the shepherd-service ? My daemon does not need any config. Just start the binary that comes from the guix package.
<jonsger>I guess you need at least some of this boilerplate code, but I'm not an expert...
<awb99>thanks jonsger!
<janneke>ah, that's /run/user/1003, hmmm...
<janneke>oh great, that's for shepherd
<jab>awb99 go to Go to the linode system repo...You can find an example endlessh service.
<jab>Currently defining services in guix is a bit painful in my experience. If you do something wrong, it's hard to figure out what you did wrong...
<jonsger>+1 jab
<awb99>jab thanks for the repo.
<awb99>is it possible to start a service without adding it to the OS section of a system definition?
<civodul>janneke: interesting
<lilyp>awb99: you can run your own shepherd instances, but Guix won't help you manage them and you have to more or less handwrite your services
<awb99>own shepherd instance = a seond USER instance that is unning?
<lilyp>there is no user instance running by default in the first place but yeah, you can probably spawn as many shepherds as you have pids and room for sockets :)
<sss1>hi all, which is easiest way to use new version of some package, something like aditing just few attributes of existsing guix package
<lilyp>if you're not looking for contributing and the package behaves nicely, --with-latest it is
<lilyp>assuming "new version" means "updated package", not "different configuration"
<lilyp>Otherwise look at the more general transformation options.