IRC channel logs

2021-06-24.log

back to list of logs

<Noisytoot>roptat: Was Guest86 Guest79?
<Noisytoot>They are using the same IP address
<roptat>I think so
<roptat>you get a different number each time you connect
<roptat>(I mean, when you use the web client)
<roptat>but even without context, you shouldn't say that to people, it's a simple question, and they got an answer, there's no reason for your intervention
<nckx>dstolfa, tissevert: Belated wave back.
<nckx>And yes, UGT, it's past midnite here.
<dstolfa>nckx: hope your day was swell
<zacchae[m]>So, a normal system config does not have git commit strings, so the versions are ambiguous. Is there a way to export a system to a `config.scm` file that specifies the commit stings? The use-case being to archive
<nckx>zacchae[m]: You mean the Guix version to be used to instantiate it?
<nckx>where s/version/commit/
<nckx>dstolfa: I was able to blow off the steam that needed blowing and am now the paragon of zendom.
<dstolfa>nckx: nice!
<dstolfa>good to hear :)
<zacchae[m]>nckx: Yeah probably that. I'm pretty new to this
<zacchae[m]>I'm assuming that would be the best way to archive a machine
<nckx>Look into inferiors in the manual, and see if it describes what you want. Locking to a particular revision of Guix locks all the package versions too, whilst the opposite (specifiying the commit for each package) would be both impractical and wildly underspecified at the same time.
<nckx>dstolfa: Heh :) Thank the lord for turning an old IRC network into shitpost central I guess.
*nckx → get a bit of work done, will return.
<nckx>(In my absence: so clicking the top-right arrow (in the grey header) returns the wrong mail‌ here <http://issues.guix.gnu.org/48803#4>. Is it just me?)
<zacchae[m]>nckx: will do
<formbi`>hi
<formbi`>I'm trying to do a guix pull and I'm getting «guix/build/download.scm:302:6: In procedure tls-wrap: X.509 certificate of 'ci.guix.gnu.org' could not be verified: signer-not-found invalid
<formbi`>»
<formbi`>nevermind: https://git.pantherx.org/mirror/guix/-/issues/3
<nckx>dstolfa: Did you run into some gexp weirdness to write (and (not (eq? #$ipsec-conf #f)) (not (eq? #$ipsec-secrets #f))) instead of (and #$ipsec-conf #$ipsec-secrets)?
<dstolfa>nckx: i think the weirdness i ran into was trying to define a macro for it and getting really weird errors, then i just kind of gave up on that idea and i think i forgot to clean up the thing
<dstolfa>i can fix it up and send the cleaned up version, or if you wish to do it locally go for it
<dstolfa>it's the same thing anyway, there was no weirdness around that, just the macro
<nckx>I already have but wanted to double check.
<dstolfa>basically i wanted to have a macro that would do the check in case it gets more complicated with swanctl, but gexps weren't happy with that
<dstolfa>and this abomination grew out of trying to make the macro work IIRC :D
<nckx>I'd just switched back to HexChat to type ‘Oh right, you probably …’ :)
<ixmpp>does guix have a tool for diffing derivations?
<ixmpp>I want to know why firefox keeps fucking rebuilding
<ixmpp>It's no longer funny
<dongcarl>I remember there was talk about how to make contributions more accessible: https://lwn.net/SubscriberLink/860607/ef7cdf174ccbe54d/
<ecbrown>to punish you for repurposing your build server as a plex transcoder
<ixmpp>._.
<drakonis>nckx: i'm ready for my first patch...
<zacchae[m]>I changed the default shell for my user in `/etc/config.scm`. Does this do anything once the account already exists? I tried logging in and out, but still uses old shell.
<drakonis>did you rebuild lol
<zacchae[m]>yes (`sudo guix system reconfigure /etc/config.scm`)
<drakonis> https://guix.gnu.org/manual/en/html_node/User-Accounts.html
<zacchae[m]>though it would have been funny if I hadn't
<zacchae[m]>Yeah, that's the page I'm on. I'mma try a reboot
<drakonis>sounds like what the page suggests
<zacchae[m]>ah, RTFM strikes again
<drakonis>ho ho ho
<zacchae[m]>drakonis: so that gave me the right shell, but it didn't generate a default `.zshrc` file. `/etc/bashrc` looks pretty important, so I'm a bit worried. Is there a way to generate the default config or something?
<drakonis>you want .zprofile tho?
<zacchae[m]>oh, I see. It did make a `.zprofile` with just `source /etc/profile`. I'm probably good then. Thanks
*ecbrown did not have good luck with guix-universe and zsh ymmv
<ecbrown>in fact i moved from zsh to bash on foreign systems
<zacchae[m]>hmm. I'll keep that in mind. Most online shell examples assume bash, which is nice, but zsh just feels better overall.
*dstolfa -> bed... somehow lasted until 3 am
<Guest37>I am thinking about trying guix but I am concerned I am going to run into problems if I need to install software that isn’t in the repos. Can guix be a pain when a package isn’t in the repos?
<zacchae[m]>In the GUIX guided installer, it asks if we would like the installer to use cached/precompiled binaries from trusted sources. Is this a persistent setting that gets stored somewhere?
<zacchae[m]>Guest37: If you aren't up to the task of trying to write a few package definitions, you might want to wait a bit for GUIX. However, guix is made to make it easy to define packages, so it's actually doable
<zacchae[m]>just be prepared to learn some lisp
<Guest37>I know lisp and I am up to the task
<Guest37>Getting packages outside of repos in other distros is often very painful, and is the reason I am switching in the first place
<zacchae[m]>Guest37: https://guix.gnu.org/manual/en/html_node/Programming-Interface.html#Programming-Interface
<zacchae[m]>sounds like this is the place for you then
<Guest37>Does using guix largely defeat the need for btrfs snapshotting?
<Guest37>Guix as an OS I should say
<zacchae[m]>Well, you still have other configs in /etc as well as user configs in your home directory that might be worthy of snapshotting
<zacchae[m]>but yeah, this is a question I also have. I try to wrap up any important configs in a master org file that tangles my various configs. Certainly, I can think of other things that should be snapshotted, but I'm thinking it's not so important for the root file system as any system breakage can be addressed by booting a previous (working) configuration.
<zacchae[m]>though if someone can think of something I'm missing, do tell
<Guest37>Hmm I’m not sure what I should do. Maybe make a separate btrfs partition with subvolumes for say etc and some firs in /home?
<Guest37>s/firs/dirs
<zacchae[m]>Why a separate partition?
<zacchae[m]>you can put `/` on a subvolume
<Guest37>It would seem wasteful to do this if I am not even gonna snapshot it
<zacchae[m]>But then you don't have to split up your drive, i.e. no guessing how much each partition will take. Just one partition with multiple subvolumes
<Guest37>I usually do the opposite where I have an ext4 partition for directories holding databases and other stuff that btrfs is bad with
<zacchae[m]>Hmm. Databases is what I would want snapshotted. I haven't had that problem, but I'd hate to tell you "btrfs is fine for that" only for you to get some data loss
<zacchae[m]>Ideally I just have one partition with btrfs for everything, including a UEFI bootloader in the true root directory
<Guest37>I’m just gonna try what I was thinking with a separate btrfs partition, hope for the best, and deal with consequences later
<Gooberpatrol66>Guest37: you can put "nocow" on database files so you don't need to have an ext4 partition
<zacchae[m]>I'm making a package definition for `vimium`, and it requires a hash of the code. However, I would like it to install the most up-to-date version if possible. Is it possible to make a lax package definition without a hash?
<marusich>zacchae[m], it is theoretically possible, at the cost of making the code which creates the package record non-reproducible, which is dubious
<marusich>You would likely be better off using a specific version in the package definition, and then using something like the "--with-latest" option instead to try out the latest version.
<zacchae[m]>I see
<marusich>See: https://guix.gnu.org/manual/en/html_node/Package-Transformation-Options.html
<marusich>It has a description of --with-latest.
<zacchae[m]>I see
<Gooberpatrol66>Do coredumps get stored somewhere in particular in Guix?
<MysteriousSilver>Hello #guix!
<apteryx>I think you can see minimal information regarding coredumps from the kernel in dmesg
<zacchae[m]>sup
<nckx>Gooberpatrol66: I think they're stored in the process's cwd by default, but you can tweak the kernel.core_pattern sysctl to put them wherever (and name them whatever) you like.
<nckx>Don't forget to enable them with ulimit -c or something like that.
<nckx>Hi MysteriousSilver.
<Gooberpatrol66>nckx: thx
<zacchae[m]>I see the guix repos have some matrix clients, but don't have element. Element is developed by the matrix team and always has the most up-to-date features. Is there a reason it isn't included the repo?
<zacchae[m]>It is apache 2.0 licenced
<nckx>Gooberpatrol66: Also, fs.suid_dumpable to dump otherwise ‘protected’ classes of binary like setuid ones.
<nckx>Element is the mind-numbingly slow HTML one, right? I think it requires Electron, which hasn't been packaged yet.
<nckx>The licence is fine and not the problem.
<zacchae[m]>I see. Thanks. Yeah it requires electron
<nckx>Hmm. Can't you just https://app.element.io then?
<nckx>It's not going to be any faster packaged…
<SeerLite[m]>Sadly only the electron app has search in encrypted rooms
***Kimapr5 is now known as Kimapr
<zacchae[m]>darn
<zacchae[m]>SeerLite nckx: Oh wow, it doesn't seem like any of the clients already packaged support VoIP. Not searching encrypted rooms seems like a small price by comparison. I think I'll just use app.element.io, unless someone has a better reason not to.
<lispmacs>I am rebuilding my system from source. I got 6 rust compilers built today. Only 16 more to go!
<Kitty[m]>👀
<zhu_zihao>👀
<MysteriousSilver>👀
<leoprikler>With this simple script lispmacs builds 6 rust compilers in a day. Cargo developers hate them.
<MysteriousSilver>Hello #guix, i would like to install GuixSD but i have few queries:
<MysteriousSilver>1. is it possible to install guix along a guix-like gnu/linux distribution?
<MysteriousSilver>2. is it possible to install DE/WMs not mentioned in the installation prompt?
<pkill9>second one yes i would guess
<pkill9>idk which ones it suggests, but there's plenty, i doubt it suggests all of them
<pkill9>plenty WMs at least
<pkill9>DE's are only a fewer major ones, gnome, xfce, lxqt i think
<pkill9>MATE
<pkill9>wish KDE was packaged
<MysteriousSilver>stumpwm?
<pkill9>yea that's packaged
<MysteriousSilver>so if it possible to dualboot with a guix-like distro i might start migrating now
<MysteriousSilver>but i don't want to experiment 😅️
<yoctocell>MysteriousSilver: you can install guix on top of your current distro if you don't want to switch to guix system
<MysteriousSilver>that is what i'm currently using
<MysteriousSilver>but wanted to try out the distro
<yoctocell>ah, ok, i haven't tried dualbooting, but i don't see why it wouldn't be possible
<MysteriousSilver>my current distro uses grub to boot into previous generations and i believe guix also does that
<MysteriousSilver>i just wanted to confirm that installing guix along it wouldn't affect both the distros
<nckx>Morning Guix.
<MysteriousSilver>welcome back nckx
*nckx fel aslep.
*MysteriousSilver yarns
<yoctocell>MysteriousSilver: so you are on nixos or something?
<nckx>MysteriousSilver: Guix will totally clobber your current GRUB. You can use the (installer #~(const #t)) trick to disable actual GRUB installation, and and just manually add a ‘configfile /name/of/guixs/grub.cfg’ to your existing grub.cfg. Unfortunately I'm blacking out on how to make Guix install its grub.cfg to anywhere but /boot/grub.
*nckx → coffee
<MysteriousSilver>yoctocell: yes
<MysteriousSilver>nckx: where should i add (installer #~(const #t))
<civodul>so, i have a problem where my Emacs input method remains active no matter what
<civodul>has anyone seen that before?
<civodul>toggle-input-method seemingly has no effect
<zhu_zihao>few months ago I ask dotnet developer: "Can we bootstrap dotnet from full source?". Sadly they say no :(
<zhu_zihao> https://github.com/dotnet/source-build/issues/1930
<htgoebel>Hi guix!
<MysteriousSilver>hello htgoebel
*nckx apologises for what comes next
<nckx>MysteriousSilver: (bootloader (bootloader-configuration (bootloader (bootloader (inherit grub-bootloader) (installer #~(const #t))))
<nckx>Duh.
<MysteriousSilver>where should i add this?
<nckx>Under operating-system.
<MysteriousSilver>i havent start doing anythig *yet*
<nckx>If you use UEFI, you'll need grub-efi-bootloader.
*nckx → AFK
<htgoebel>I have some issue when using package transformation --with-source:
<htgoebel>While the very same package description passing without transformation,
<htgoebel>build fails with "mylib.so: depends on 'libpEpEngine.so', which cannot be found in RUNPATH (…)
<htgoebel>Anyhow, the paths listed after RUNPATH include one path containging a like to libpEpEngine.so.
<htgoebel>Any ideas?
<MysteriousSilver>nckx: so if i decide to uninstall the other distro, how do i install grub in bootloader
<raghavgururajan>Hello Guix!
<MysteriousSilver>bonjour
<karthik[m]>raghavgururajan: \o
<raghavgururajan>Hey karthik[m], how are ya?
<karthik[m]>raghavgururajan: Normal. GNOME bumped to 40 in guix yet?
<raghavgururajan>Not yet.
<MysteriousSilver>> and just manually add a ‘configfile /name/of/guixs/grub.cfg’ to your existing grub.cfg
<MysteriousSilver>using OSprober (not sure what it does), should i still manually add it?
<MysteriousSilver>nckx
<zhu_zihao>I don't think OSprober is working on guix currently.
<zhu_zihao>There's no option for bootloader to use os-prober to generate extra entry.
<zhu_zihao>IIRC
<MysteriousSilver>oh
<MysteriousSilver>what will be the path of guix grub.cfg?
<zhu_zihao>in boot partition
<zhu_zihao>just like other distro
<MysteriousSilver>i mean how will i point the guix root part from another distro
<MysteriousSilver>nvm, (hd0,1)
<zhu_zihao>emmm, you'd better to use guix' grub, and add an extra entry to your origin distro?
<zhu_zihao>I show you one entry from my guix system
<zhu_zihao> https://termbin.com/8mhe
<zhu_zihao>damn, plz wait
<MysteriousSilver>its alright
<zhu_zihao> https://pastebin.com/ChGnaAyG
<zhu_zihao>you can see /gnu/store/xxxxxxxx
<zhu_zihao>when updating kernel, guix recompute the location of kernel and initrd, and write them to grub.cfg
<zhu_zihao>if you don't let guix to manage grub, your guix system may failed to boot
<MysteriousSilver>ok, so how do i mention the other distro in guix's grub.cfg?
<MysteriousSilver>the problem is my current distro also does the same
<MysteriousSilver>s/same/guix recompute the location of kernel and initrd, and write them to grub.cfg
<zhu_zihao>emmm
<zhu_zihao>hot potato
<MysteriousSilver>sad potato
<zhu_zihao>if your origin distro has fixed location for kernel & initrd, just add an extra entry to guix bootloader setting
<zhu_zihao> https://guix.gnu.org/manual/en/guix.html#Bootloader
<zhu_zihao>search: Should you want to list additional boot menu entries ....
<zhu_zihao>if it has dynamic location, idk how to make them work together...
<MysteriousSilver>can't i just add this to my current distro config?
<MysteriousSilver> extraEntries = ''menuentry 'GuixSD' { configfile (hd0,1)/boot/grub/grub.cfg } '';
<zhu_zihao>oh, I don't know if grub can use this syntax ('configfile')
<zhu_zihao>I think it can work
<MysteriousSilver>it should, since i copied the line from someone else's config
<MysteriousSilver>zhu_zihao: any idea where `operating-system` is?
<MysteriousSilver>nckx instructed me to add a few lisp code to operating-system
<zhu_zihao>MysteriousSilver: https://guix.gnu.org/manual/en/guix.html#index-operating_002dsystem-1
<MysteriousSilver>thanks
<boeg>What do I need to do to be able to run startx to start my Xorg things up instead of a DE? I have configured my .xinitrc and so on, and installed xinit which packages startx, but it seems that I need to install Xorg or "configure" it some way. Running startx says "xinit: unable to run server": no such file or directory"
<raghavgururajan>> zhu_zihao‎: oh, I don't know if grub can use this syntax ('configfile')
<raghavgururajan>Yes, it can. I use `configfile /boot/grub/grub.cfg` in my configuration.
<raghavgururajan>MysteriousSilver ^
<MysteriousSilver>thanks
<MysteriousSilver>and btw are you dualbooting with guix?
<boeg>I wonder if its just Xorg-server package
<raghavgururajan>No I don't. I use that line in my libreboot's grub's grub.cfg.
<MysteriousSilver>ah, makes sense
<boeg>nope, didn't work
<raghavgururajan>boeg: You could try xorg-service-type.
<boeg>is there one such?
<boeg>didn't see it in the manual
<boeg>lets me see
<raghavgururajan>MysteriousSilver: May be the 'completion' section of this (https://en.flossmanuals.net/guix-system-and-libreboot/_full/) might help you. It relates to writing custom menu-entry.
<raghavgururajan>boeg: IIRC, It's not in manual.
<raghavgururajan>boeg: It's xorg-server-service-type (https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/xorg.scm#n513).
<raghavgururajan>Maybe iyzsong could help you with that service.
<MysteriousSilver>raghavgururajan, (when not listed in grub entries) will executing `configfile /boot/grub/grub.cfg` launch guix?
<MysteriousSilver>i don't use libreboot and LUKS
<raghavgururajan>MysteriousSilver: You mean executing `configfile /boot/grub/grub.cfg` from grub command line?
<MysteriousSilver>yeah
<raghavgururajan>I don't think so, because /boot/grub/grub.cfg was generated by the other distro.
<boeg>hmm, doesn't work ... I added (service xorg-server-service-type) and it did build but it didn't fix the problem
<MysteriousSilver>even with specifying the guix partition? (hd0,1/boot/grub/grub.cfg)
<raghavgururajan>MysteriousSilver: What you can do is, not install grub and generating grub.cfg from/by the other distro. Instead, you can install grub and generate grub.cfg from/by guix. That way, you can create menu-entry for the other distro in the bootloader section of config.scm.
<raghavgururajan>MysteriousSilver: Ah that might work, since you explicity mention the partition.
<MysteriousSilver>i'll go with the latter
<raghavgururajan>Test
*raghavgururajan 's gajim froze for a while
<raghavgururajan>MysteriousSilver: Cool!
<nathan_>Hello, everyone! I need help installing texlive with GUIX
<nathan_>I just finished my MSc. dissertation, and had a terrible time bc evince broke in the last weeks of my work; I decide to move the software I need the most to GUIX so that I can be more picky about upgrades and rollbacks
<nathan_>is there an equivalent of texlive-most in guix? I installed texlive and it does not have some packages I need
<dstolfa>what is texlive-most?
<nathan_>is a bundle of latex packages
<MysteriousSilver>this? https://archlinux.org/groups/x86_64/texlive-most/
<nathan_> yes! that is what I was using
<rekado_>nathan_: texlive has *everything*
<rekado_>all 3+GB of TeX Live
<nathan_>well, I must have done something wrong, then
<rekado_>(I prefer to use texlive-base and specific packages)
<nathan_>I used this package in my thesis https://www.ctan.org/pkg/subfiles
<nathan_>and when I run latexmk it seems like it is not installed
<dstolfa>it's possible that subfiles is not imported -- you could leverage `guix import texlive subfiles` to generate the package definition for it, it might just work out of the box with it
<dstolfa>you'd have to package it (and could send a patch to the mailing list)
<nathan_>@rekado_ sure, I completely understand. It is a lot of things, many of them I am not even sure what for
<nathan_>@dstolfa lemme try that; but which mailing list could I send the patch to?
<boeg>How would I go about, from within my configuration, to make sure a file with specified content exist at a certain location? (I want to have guix create and maintain a .desktop file for exwm)
<dstolfa>nathan_: https://guix.gnu.org/manual/en/html_node/Contributing.html describes everything, but if you are confused at any point don't hesistate to ask!
<nathan_>dstolfa: thank you! I am doing some Read The Friendly Manual rn and may come back with further questions
<boeg>Hmm, okay, so GDM looks for session types in /run/current-system/profile/share/xsessions, but since its not a writable location, how do I put a custom .desktop file there so I can choose it in GDM?
<nathan_>OK, I have a question. This is the first time I create a package. Have already played around with Scheme, so that seems OK
<jlicht>nathan_: congrats on the dissertation
<nathan_>the output from guix import has as uses a svn-fetch which guix complained it did not find. Where can I find the scripts available for use with GUIX?
<jlicht>boeg: you install a package with stuff in <out>/share/xsessions to your system profile
<nathan_>I googled and saw people talking about a texlive-fetch, which seems like precisely what I need https://lists.gnu.org/r/guix-devel/2019-03/msg00071.html
<boeg>jlicht: right, but there is no such package. I want to run EXWM and normally you can just place a .desktop file and choose it in the login manager
<nathan_>jlicht: thank you very much! I am really proud, although a little tired still
<jlicht>boeg: exwm is not an option in your gdm when you have exwm installed in your system profile?
<boeg>I... didn't try, jlicht, the docs says to manually create the file
<boeg>the exwm docs
<boeg>ill try and install it
<jlicht>boeg: Ah, now I understand your problem; in guix land, there is some integration work for packagers to make this work; for exwm, it has already been done. So to answer your actual question: you are correct, which is why packagers have to make these files at build-time
<boeg>right, im building now and lets see if it appears
<karthik[m]>raghavgururajan: so, stepped into matrix at last 🤓
<jlicht>boeg: the system profile requires a system reconfigure (and perhaps reboot?) for changes to be seen
<boeg>jlicht: indeed - and it worked
<boeg>thanks
<jlicht>yw! Enjoy the Emacs
<jlicht>nathan_: if you put your package definition in gnu/packages/tex.scm (in your git checkout), it should Just Work (tm)
<jlicht>nathan_: RE: the texlive-fetch, I don't think that is a thing (anymore)
<nathan_>I do not follow what you mean by my git checkout
<nathan_>is it where I installed guix itself? or any git checkout from a project I am working on?
<jlicht>nathan_: I meant your git checkout of guix itself. Never mind if you don't have it
<nathan_>I do not have one. I think I ran the shell script, but as it was a while ago I am not quite sure
<jlicht>nathan_: In a 'stand-alone' your-pkg.scm: https://paste.debian.net/1202245/
<jlicht>and, if you did things right, `guix build -f your-pkg.scm'.
<jlicht>nathan_: that should be svn-download, not whatever I wrote
<jlicht>and texlive, not tex. Phones are hard to type on :-)
<apapsch>qemu wiki says to disable firewall in the guest for port forwarding to work. But to test the firewall locally I can't disable it
<apapsch>
<apapsch>seems bridged networking is the only way to go, right?
<nathan_>jlicht: oh wow, I do not even try to type something intelligent on my phone
<nathan_>perhaps I have done something wrong when installing guix: no code for module (guix build-system tex)
<jlicht>s/tex/texlive, my mistake nathan_
<nathan_>got it: it was texlive
<nathan_>yes!
<nathan_>it is installing things right now
<boeg>jlicht: where do I find the source for the emacs-exwm package?
<boeg>Need to see what exactly it does
<jlicht>boeg: guix edit emacs-exwm should give you the sources for the package definition
<boeg>cool, thank you!
<jlicht>and guix build --source emacs-exwm for the exwm-sources
<boeg>great!
<nathan_>jlicht: thank you very much; it seems that I need to read a little more from the cookbook, at least
<nathan_>I have another issue that peharps someone here can help: I have used guix to install emacs-guix. When I start a new emacs, I can run the M-x guix
<nathan_>however, the emacs server that starts via systemd does not have the function M-x guix to be used
<nathan_>sure, perhaps I should fight a little more with systemd, but this is the first time something like this happened to me
<nathan_>All my other emacs packages simply work
<nathan_>for this particular issue, I think I will just uninstall emacs-guix from guix and install it via elpa, like my other emacs package
<nathan_>but that makes me worried that perhap there is something wrong with my guix configs
<MysteriousSilver>did you restart the service?
<nathan_>yep
<nathan_>even the computer, because it is not the first time I have trouble with systemd services
<nathan_>and there are somethings that require daemon restart
<MysteriousSilver>are other Elisp packages installing through guix visible in emacsclient?
<MysteriousSilver>and check if `C-h v load-path` contains guix.el
<nathan_>so far emacs-guix is the only one I have
<nathan_>lemme see
<nathan_>I ran
<nathan_>(use-package guix :load-path "/home/nathan/.guix-profile/share/emacs/site-lisp/guix-0.5.2-4.8ce6d21")
<nathan_>and it is there at my load-path
<nathan_>("/usr/local/share/emacs/site-lisp/" "/home/nathan/.guix-profile/share/emacs/site-lisp/guix-0.5.2-4.8ce6d21" ...)
<MysteriousSilver>try adding (guix-emacs-autoload-packages) to your config
<nathan_>MysteriousSilver: added to my config; as soon as the subfiles package finishes building I will restart the systemd service
<nathan_>cuz of course I ran from inside of eshell and do not want to kill it
<zeropack>Hello, is there an easy way to enable network access during guix build?
<raghavgururajan>> karthik[m]‎: raghavgururajan: so, stepped into matrix at last 🤓
<raghavgururajan>Nope! I am connected to IRC from XMPP and you are connected to IRC from Matrix.
<MysteriousSilver>raghavgururajan: installing guix along nix is too much work
<jackhill>zeropack: no, that's by design. Builds happen in isolated environments. What's making you want network access. Maybe there's another way.
<MysteriousSilver>i'll format the nix partition instead
<jackhill>raghavgururajan: I was able to get gajim installed with the staging commit you recommended. Still no luck with calls with jmp.chat though.
<zeropack>I'm trying to package a private Elixir app, and don't have the time or expertise to implement a proper Elixir build system yet.
<zeropack>So i'd like to just let the Elixir package manager download the dependencies
<apapsch>zeropack: if it's private you could create a release tarball with all elixir dependencies bundled and in the guix recipe use copy-build-system
<jackhill>zeropack: +1 to apapsch's idea
<raghavgururajan>jackhill: Hmm. Could you try calling another XMPP user?
<jackhill>raghavgururajan: can I try calling you?
<apapsch>zeropack: just make sure to create the tarball with one single first level subdirectory. guix unpack phase changes to the first subdirectory of the extracted archive
<zeropack>apapsch: Great idea, thanks!
<jackhill>raghavgururajan: I installed it in its own profile and just ran it with ./full/path/to/gajim. I didn't source the environment vars there or anything.
<apapsch>if you put all files directly in the root of the archive, you'll have to append a build phase doing (chdir "..") after the unpack phase
<jackhill>raghavgururajan: and I'm actaully at work now, so it might be best to schedule more testing for later
<raghavgururajan>MysteriousSilver: Sorry to hear that. Both Guix and Nix, overwrites /boot/grub/grub.cfg after every system reconfigure.
<raghavgururajan>> ‎jackhill‎: raghavgururajan: can I try calling you?
<raghavgururajan>Sure!
<raghavgururajan>> jackhill‎: raghavgururajan: and I'm actaully at work now, so it might be best to schedule more testing for later
<raghavgururajan>Ah okay. You can check Gajim --> Preferences --> Audio/Video --> Turn on Live Preview.
<jackhill>cool. I'll check the preferences
<raghavgururajan>MysteriousSilver: Does NixOS provides an option for not installing grub and only generate grub.cfg?
<MysteriousSilver>i think yes
<MysteriousSilver>i wasn't sure if wifi will work in guix
<MysteriousSilver>that was why i tried to dual boot, but since the installation image successfully connected to wifi
<MysteriousSilver>i'll just get rid of the other distro
<apapsch>dd if=/dev/zero of=/dev/other/distro
<MysteriousSilver>O-O
<apapsch>kill it with zeroes!
<MysteriousSilver>should i make a seperate home partition?
<MysteriousSilver>s/pe/pa
<apapsch>it's overrated
<raghavgururajan>> MysteriousSilver‎: i think yes
<raghavgururajan>In that case: [1] Configure NixOS to not install grub binaries, but only generate grub.cfg. [2] Install guix system, with extra menu-entry for NixOS in the bootloader-configuration of config.scm. https://guix.gnu.org/en/manual/en/html_node/Bootloader-Configuration.html
<apapsch>hard partition borders may lead to one partition filling up while the other remains very empty
<apapsch>if using btrfs subvolumes may be worth it if you have special backup needs
<MysteriousSilver>raghavgururajan: 😅️ i've decided to just stick with guix
<zacchae[m]>Anyone know if one of the matrix clients in the savanah repo supports VoIP?
<raghavgururajan>MysteriousSilver: Great! Btw, you can try multiple partitions with LVM. Here, https://paste.debian.net/plain/1202268
<zacchae[m]>I was going to just use app.element.io, but it signs me out any time I restart my browser
<apapsch>lvm also has hard borders. that example uses btrfs in the partitions. btrfs subvolumes use available space of whole disk, so using one big btrfs partition with subvolumes has a significant advantage over traditional partitions or lvm
<MysteriousSilver>raghavgururajan: should i use btrfs? i've never used anything other than EXT4
<apapsch>it's fine and stable
<MysteriousSilver>apapsch: what do you suggest me to go with?
<dongcarl>powerpc64le folks: which version did glibc start properly supporting the -le variant?
<apapsch>whole disk --> whole btrfs partition
<MysteriousSilver>okay, so does btrfs take more storage space than EXT4?
<efraim>I turned on compression and got more space than ext4
<MysteriousSilver>sounds good
<efraim>Here's what I do https://git.sr.ht/~efraim/guix-config/tree/master/item/3900XT.scm#L47
<apapsch>MysteriousSilver: one big btrfs partition keeps things simple and subvolumes satisfy your backup needs
<MysteriousSilver>thanks efraim
<MysteriousSilver>apapsch, wouldn't need backups ig
<apapsch>even less maintenance work :-)
<MysteriousSilver>will try installing and report
<apapsch>MysteriousSilver: https://i.imgflip.com/5eeblo.jpg
<MysteriousSilver>i have nothing worth backing up 😔️
<apapsch>until the precious byte you didn't know was precious is lost to the void ;-)
<zacchae[m]>reza: yes, and it was not good. Wifi card doesn't work (gnu firmware != gnu drivers).
<zacchae[m]>you can get a compatible wifi dongle/card, and use free nvidia drivers, and it will work, but it definitely made me mad when they advertise how "gnu" they are but can't run a gnu OS
<zacchae[m]>oryx pro is what I have. It has an ethernet port, so it can work, I'm just salty. I think I remember having some (probably similarly minor) problem when I tried to run any linux on dell xps, so I'm doubtful it will run.
<zacchae[m]>For the most part, if you are ok with buying a wireless card that explicitly runs on a free OS, you should be good
<zacchae[m]>It's usually pretty easy to replace a wireless card in a laptop (just don't loose too many screws)
<dstolfa>zacchae[m]: i think every dell uses an m.2 card by intel that requires iwl
<dstolfa>what i did is just get an ath9k_htc external card
<dstolfa>and i use that
<zacchae[m]>For the most part, if you run linux fine, you just need to worry about the wireless card and GPU (especially Nvidia) for linux-libre. Obviously, there are exceptions to every rule, but this will get you far. Far enough that you should feel safe to order a laptop with a 90 day return policy and run tests
<tricon>zacchae[m]: That is definitely reassuring and a good point. I'm conflicted in that, on one hand, it'd be nice to have a libre AX Wi-Fi adapter for my desktop (none exist, from what I've heard); and at the same time, I'd rather just run a darn cable. Ethernet is just so rock solid and works.
<tricon>But I am interested in a new, libre laptop as well.
<tricon>(As libre as possible.)
<jackhill>I've had annoying problems with the firemware in laptops only accepting approved pcie wifi cards. Fortunately, USB wifi is an easy work around.
<tricon>Hmmm... that's a good point too.
<jackhill>tricon: Some of us, including me, have ordered an MNT Reform <https://mntre.com/reform>. The only required blob is to initialize the memory. I just got mine yesterday though, so haven't gotten Guix on it yet :)
<zacchae[m]>reza: Straight from the free software foundation: https://ryf.fsf.org/products
<tricon>They make Amiga components!?!? I have such an adoration for hte Commodore and the Amiga. Still have 4x C64s (including the "portable" ST) and an Amiga 1000.
<tricon>Had the 500 and 1200 back in the day.
<tricon>*the
<tricon>jackhill: Reform looks nice, thank you for this.
<jackhill>tricon: you're welcome, happy to share
<raghavgururajan>efraim: Are there any advange for using %tmp-tmpfs and %guix-temproots?
<raghavgururajan>*advantages
<drakonis>is there a way to reuse a successful build and hack on top of that for the following steps?
<raghavgururajan>efraim: Nvm! I just saw your other files.
<zhu_zihao>if an emacs package contains some resource files, should I move it to <prefix>/share/emacs-xxx/ or just leave it under <prefix>/share/emacs/site-lisp/xxxx-A.B/
<zacchae[m]>anyone know why chromium isn't showing up in pulseaudio? Or where I sohuld look. My speaker shows up fine, and my tab has the audio symbol, but pasystray doesn't show chromium.
<raghavgururajan>Folks, how do you trigger certbot with certbot-service-type?
<zacchae[m]>hmm, icecat works fine
<drakonis>raghavgururajan: there's a hook you need and the initial run has to be manual?
<raghavgururajan>drakonis: This is my config (https://paste.debian.net/plain/1202274) for certbot-service-type. How should I manually run certbot?
<drakonis>sudo /var/lib/certbot/renew-certificates
<raghavgururajan>drakonis: Phew! Thanks.
<ixmpp>Y'all really like sr.ht huh
<nathan_>hello people! I came back with systemd, emacs, and guix working as a team
<nathan_>turns out systemd does not load environment variables by default, so to have emacs working well with guix I had to run it from bash
<nathan_>the fact that emacs-guix was not working was actually a consequence of the fact that emacs was not working with Guix as intended
<ixmpp>How many of you have a public guix-publish server running?
<nathan_>bc I was running emacs service via systemd, and systemd ignores variables
<ixmpp>Nyeh, wrong channel
<leoprikler>nathan_: I think you can configure systemd to forward some important variables to the process
<nathan_>there is an Environment option
<leoprikler>or at least to set them to some meaningful values
<nathan_>leoprikler: but I simply ran through bash
<nathan_>because I was unsure about which variables I need to forward
<nathan_>you see, guix do a lot of things on my env
<leoprikler>true
<leoprikler>EMACSLOADPATH is the one most relevant to Emacs, but there are others as well
<leoprikler>what you did is a perfectly legitimate solution :)
<nathan_>leoprikler: thank you! It sure took me some time to understand what was happening
<nathan_>what made me understand that was the issue was that the only emacs instance which was not working was the server that I run at startup
<lispmacs[work]>hi, I was trying to profile and system from source. But I keep crashing from memory exhaustion (collect2 kills ld, to be more precise) when I try to build qtwebkit. Are there any tricks to reduce memory usage during builds?
<lispmacs[work]>I've got an 8GB system with less than half that being used by the rest of the OS and applications
<roptat>lispmacs[work], -c1 (running on one core)
<lispmacs[work]>roptat: I'm currently using -M 1 and -c 1 but it still crashes
<roptat>then you're out of luck
<leoprikler>I don't think qtwebkit is supposed to be compiled by mere mortals
<lispmacs[work]>does Guix have stats or something on how much memory it took for their server to build qtwebkit?
<roptat>no, guix doesn't keep stat of resource usage during builds
<lispmacs[work]>I seem to recall that some build systems have a way of passing in options that trade out memory usage for disk usage
<raghavgururajan>drakonis or anyone: Is there a way to use CSR with certbot-service-type?
<drakonis>csr?
<raghavgururajan>CSR -> Certificate Signing Request
<drakonis>oh
<drakonis>no idea
<lispmacs[work]>hmm, well, I wonder what it is in my manifest that requires qtwebkit
<leoprikler>guix graph
<lispmacs[work]>I think it must be gnuradio. I wasn't using it on this computer anyway
<atuin>Hi, I'm getting this error when trying to build / download nix: failed to download "/tmp/guix-file.geObqY" from "https://nixos.org/releases/nix/nix-2.3.12/nix-2.3.12.tar.xz"
<atuin>but using wget ends up downloading it
<atuin>I get also this error when using wget several times "GnuTLS: Resource temporarily unavailable, try again."
<atuin>any idea what could be wrong?
<roptat>atuin, you could try "guix download https://nixos.org/releases/nix/nix-2.3.12/nix-2.3.12.tar.xz"
<bdax>Hi everyone, I asked a while ago about using guix to install everything from source. I was told to set substitute-urls to an empty list, as in `(substitute-urls '())`, but where do I put that in the installation script when installing GuixSD?
<roptat>oh, mh I get the same error with guix download actually
<roptat>bdax, if you want to install using only sources, I think you need to install manually
<bdax>ah okay, daunting :| time to read the manual I suppose. thanks roptat
<roptat>another possibility might be to stop the daemon, and restart it manually
<roptat>from another tty, as root, run "herd stop guix-daemon", and guix-daemon --no-substitutes --build-users-group=guixbuild
<roptat>that might be the easiest way to do so
<roptat>if you configure with (substitute-urls '()), it means you won't use substitutes by default, but any user can override that value to any substitute server that's allowed (ci.guix.gnu.org by default)
<roptat>(and, that takes effect only once you reboot on your new system)
<bdax>hm, well it's a single user system, but how would you do it then?
<atuin>roptat: I tried that indeed :D
<roptat>I'd find a way to pass --no-substitutes instead
<roptat>atuin, actually, the file redirects to another URL, and guix download seems happy: "guix download https://releases.nixos.org/nix/nix-2.3.12/nix-2.3.12.tar.xz"
<bdax>ah okay, but how do you get that to persist across reboots, or does guix handle that automatically?
<roptat>that should be the same file, and since it has the same name, it should download it to the store and allow you to continue
<atuin>I will try to debug, but even wget gives the error 3 times, so i guess some problem with the redirection
<atuin>ahhh thanks, I will try that
<roptat>bdax, if it's in the configuration file, that would be what the guix-daemon starts with by default
<roptat>bdax, you would set (use-substitutes? #f) in the guix configuration
<atuin>roptat: indeed, that worked. I guess wget behaves differently than guix download when handling redirections
<roptat>atuin, yeah, it seems so, would you mind sending a bug report?
<bdax>ah brilliant, so that in the installation script, and restart guix-daemon during installation with --no-substitutes, and that will force guix to operate in source-only mode for all users, across reboots?
<atuin>roptat: via email right?
<roptat>atuin, yes, to bug-guix at gnu.org
<atuin>ok
<roptat>bdax, yes
<bdax>excellent, thanks again roptat
<roptat>the configuration is for your new system, restarting the daemon is for the guix in the installer
<bdax>use-substitutes? doesn't seem to be documented, but I'll give it a try
<roptat>note that doing so, you'll spend a lot of time (maybe more than a day if you don't have a super powerful system) building packages in the installation system
<roptat>bdax, it's there in the list: https://guix.gnu.org/manual/devel/en/html_node/Base-Services.html#index-guix_002dconfiguration
<roptat>I'd recommend using a very minimal system so you can boot the new system earlier, and then work from there
<bdax>oh! there it is, thanks, and yeah my system tends to be quite minimal as I use bspwm instead of something like gnome, so hopefully it won't take too long
<roptat>well, I'd build a system with no graphics at all at the beginning
<roptat>but, good luck anyway :)
<bdax>right yeah, X11 probably takes a while
<roptat>it's a lot of dependencies
<mfg>is it possible to only run until a certain phase and after that change to the build dir to manually try things out?
<jlicht>roptat: with your android-studio-in-a-box (environment) approach, were you ever able to have AS talk to any connected devices?
<roptat>mfg, you can change the recipe like (add-after 'phase 'fail (lambda _ (throw 'error))), and then guix build -K that package
<roptat>jlicht, yes, no problem
<roptat>although I had to restart adb from outside the environment
<roptat>I couldn't use the adb from AS
<mfg>roptat: i see. thanks for the tip :)
<jlicht>roptat: I'll have to look into that then, thanks for the data point :)
<nckx>raghavgururajan: What does this print:
<nckx>/gnu/store/g6nhdp7i1sr51anq86hd6adrsm5ha857-nginx-1.21.0/sbin/nginx -c /gnu/store/2igpjf27rm92np6jn6hfrxzx5m55a468-nginx.conf -p var/run/nginx
<nckx>MysteriousSilver: I was away :) Did you progress?
<cwebber>what's the guix command to download and unpack a package source again? I can't find it
<nckx>raghavgururajan: Add my missing / before /var.
<nckx>cwebber: guix build --source
<cwebber>nckx: ah yes, thanks!
<nckx>It doesn't unpack tarball, though.
<nckx>*s
<raghavgururajan>nckx: I will get back to you regarding nginx. I am stuck with not able to use CSR file. Is this change (http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49213) look good?
<nckx>raghavgururajan: s/Path to/File name of/, s/uses it to obtain certificate/will use it to obtain a certificate/, s/using randomly generated private-key/using a randomly-generated private key/, first certificate-configuration-csr indentation is off.
<nckx>LGTM if you've tested both with & without csr set.
<raghavgururajan>Thanks!
<nckx>Thank you.
*nckx AFK.
***MalRooks is now known as Rooks
<raghavgururajan>leoprikler: Any thoughts on failure in execution of referrenced programs in pipe-viewer? https://issues.guix.gnu.org/issue/49210#0
<leoprikler>raghavgururajan: maybe substitute* failure?
<raghavgururajan>leoprikler: I checked with -K. It patch was applied.
<raghavgururajan>*The patch
<leoprikler>It appears, there are also some things that get quoted via q{}, have you looked into those?
<raghavgururajan>Oh, I'll look into it.
<raghavgururajan>Hmm. If I run `./pre-inst-env guix system reconfigure /path/to/config.scm` from bootstrapped guix repo (where my patches are applied), I get `error: %base-file-systems: invalid field specifier`.
<raghavgururajan>Never mind! Unbalanced brackets.
***iskarian is now known as Guest1156
<mekeor>how do i "allow non-forward updates" to guix-pull?
<dstolfa>--allow-downgrades
<mekeor>i see. it's just bad wording in an error message :D
<dstolfa>i think it's just using git terminology
<dstolfa>but i agree that it would be confusing if you're not used to it :D
<mekeor>well, i mean technically i don't downgrade my channel but i simply changed my last commit
<dstolfa>yeah, but because your old hash is not included, it "looks" like a downgrade
<dstolfa>usually what i do to avoid this is instead of git commit --amend is just create a new one, and then squash before submitting patches
<dstolfa>that way i only really have to do the --allow-downgrades once instead of all the time
<mekeor>given a (define-public foo-modification (package (inherit foo) …)), (how) can i modify a certain phase, given per 'label?
<mekeor>or do i really need to copy everything over? o.O
<tricon>mekeor: See 8.6.5 here: https://guix.gnu.org/manual/en/html_node/Build-Utilities.html
<tricon>You'll see an example.
<mekeor>i mean there is the (modify-phases (replace …)) function but i'd need to get the arguments→phases out of the foo-variable...
<efraim>looks like you want substitute-keyword-arguments then
<efraim>(arguments
<efraim> (substitute-keyword-arguments (package-arguments foo))
<efraim> ((#:phases phases)
<efraim> `(modify-phases ,phases ...
<mekeor>efraim: beautiful! thank you, too, tricon! :)
<mekeor>oh, substitute-keyword-arguments doesn't seem to be mentioned in the manual :/
<mekeor>mekeor: well, at least there is a doc-string in the guix-repo :D
<tricon>mekeor: Ya talking to yourself!? :D
<mekeor>no, i'm talking to mekeor... err, i mean, someone might search the irc-logs at some point ;)
<mekeor>also, it's like chat-threads for me xD
<tricon>Hah, I like that.
<Noisytoot>maybe mekeor is 2 people using the same IRC client
<tricon>That is even more amusing...
<tricon>Or, it's like that South Park episode where every person is referred to as "Marklar".
<raghavgururajan>Hmm, when I use this patch (https://issues.guix.gnu.org/issue/49213), the value of csr is passed to --manual-auth-hook instead of --csr. Thoughts?
<nckx>raghavgururajan: Move ‘csr’ in the match-lambda to match the order in the record definition? (Before, you guessed it, authentication-hook.)
<raghavgururajan>nckx: Let me try.
<raghavgururajan>nckx: That worked. Thanks!
<nckx>$ <> matches in slot order, which is a fancy way of saying that it doesn't look at the ‘field’ names, only the order in which they appear in the record definiton. So if I (define-record-type* <kool> … (field-a …) (field-b …)), then create a (kool (a "A") (b "B")) object, (match-lambda (($ <kool> b a) …)) will happily bind "A" to b and "B" to a.
<ixmpp>scheme procedure to delete duplicates from a list, anyone?
<nckx>Caveat super emptor.
<raghavgururajan>nckx: Ah I see. Btw, if I use (if csr `("--csr" ,csr) '("-d" (string-join domains ","))), I get Wrong type (expecting string): (string-join domains ",").
<ixmpp>fine i'll do it imperatively...
<raghavgururajan>May be (if csr `("--csr" ,csr) `("-d" ,(string-join domains ","))) ?
<nckx>raghavgururajan: So --csr and -d are mutually exclusive? (It's been years since I've run Certbot.)
<nckx>But yes, you found the problem.
<raghavgururajan>nckx: Yes, the CSR file has the domain names.
<nckx>You were passing a ‘literal’ list ('string-join 'domains ",").
<nckx>OK…
<nckx>Seems like a potential for user confusion if (domains …) silently ignored. Not that I know the best alternative.
<nckx>ixmpp: Why imperatively?
<ixmpp>got a better idea?
<nckx>Never mind.
<nckx>ixmpp: As a quick hack, (use-modules (ice-9 match) (rnrs lists)) (define (deduplicate list) (match list ((element . tail) (cons element (deduplicate (remove element tail)))) (() '()))) seems to do the trick without having to stoop to imperative programming 😉
<nckx>Any bugs are included.
<ixmpp>:D! thanks
<mekeor>ixmpp: maybe delete-duplicates from SRFI-1? https://www.gnu.org/software/guile/manual/html_node/SRFI_002d1-Deleting.html
<nckx>Lol.
<ixmpp>oh, even better
<ixmpp>i figured there'd be something
<nckx>The nice thing about the standard library is you'll never know it.
<mekeor>i just searched for "duplicate" in guile manual :D
<nckx>I didn't and look where it got me.
<mekeor>it's cool that you can pass the equality-function :D
<nckx>Yes.
<nckx>If you pass the inequality function great fun ensues.
<mekeor>hahah
<nckx>It returns all the occurences of the first element.
<nckx>Ponder that and you'll probably become enlightened on the nature of equality.
<nckx>Or not.
<mekeor>sorry, i have no idea of scheme but i guess: (delete-duplicates '(h a h a h) (lambda (x y) (!= x y))) ?? equals '(h h h) ?
<nckx>Yep.
<mekeor>i'm not sure if the lambda syntax is right *shrug*
<nckx>It was mainly the != that offended me greatly.
<ixmpp>heh
<mekeor>is it neq or what *eyeroll*
<mekeor>we need a guile bot #here
<mekeor>or better, a guix-guile bot :O
<nckx>GuileBot: You're pretty hot for someone your size.
<nckx>‘Stop negging the bot.’
<nckx>mekeor: There's a Python bot in another channel I lurk in and 67% of the ‘content’ is people feeding it shit and trying to make it kill() itself.
<nckx>I'm not sure it's a boon.
***xgqtd is now known as xgqt
<raghavgururajan>> nckx‎: Seems like a potential for user confusion if (domains …) silently ignored. Not that I know the best alternative.
<raghavgururajan>The alternative is using (if csr `("--csr" ,csr) '()) but user should use same list of domains in csr file for "-d". The trouble is, domains are mentioned in HEX inside csr file.
<nckx>I was thinking more in the direction of throwing an error if both domains & csr are set.
*nckx AFK.
<raghavgururajan>nckx: If both domains & csr are set, but the domain-names mismatches between domains & csr, certboth will throw error message that domain-names are inconsistent between domains & csr.
*mekeor . o O ( "what seems to be missing among 'delete', 'replace', 'add-before' and 'add-after' are 'move-before' and 'move-after' which move a phase from one place to another" )
<mekeor>ugh, finally. i got my mu-beta (v1.5) package declaration to build :)
<mekeor>s/ugh/uhh *.*/