IRC channel logs

2023-11-08.log

back to list of logs

<dissoc>i have a hard drive that i used for guix a few years ago with full disk encryption. how do i mount this from a running system to see what files are on there?
<apteryx>ACTION realizes they broke libreoffice
<apteryx>dissoc: udisksctrl unlock -b /dev/sdX && udisksctrl mount -b /dev/mapper/luks-XXX /mnt
<apteryx>where /dev/sdX is your encrypted drive
<apteryx>and /dev/mapper/luks-XXX the mapper device that appears after unlocking it
<apteryx>ACTION is testing a build of libreoffice 7.6.3
<Kolev>I'm making progress in migrating to Guix Home! 😀
<apteryx>well done persevering!
<Kolev>Code: https://codeberg.org/csh/dotfiles/src/branch/testing
<hwpplayer1>Hi GNU Guix people
<hwpplayer1>Cy
<Kolev>hwpplayer1, hi! I'm on Guix Home now! 😀
<apteryx>great, libreoffice 7.6.3 built and appears to work fine
<Kolev>How is GNOME going along on Guix?
<lilyp>slowly; see gnome-team branch
<podiki>is it better to cancel an evaluation on CI if there's been more recent commits to build? will some builds be lost that were canceled and not in a more recent evaluation?
<podiki>(for mesa-updates huge first evaluation but since then some updates with less builds)
<adanska>hi guix!
<sneek>Welcome back adanska, you have 1 message!
<sneek>adanska, nckx says: https://logs.guix.gnu.org/guix/2023-11-07.log#122529
<adanska>thanks!
<adanska>sneek: botsnack
<sneek>:)
<Kolev>emacs-debpaste or emacs-webpaste?
<sneek>adanska: wb!!
<Kolev>Is there a way to get (issue "foo") to show the TTY number?
<Kolev>`\l` is the ticket! 😀
<Kolev>(issue (cons %default-issue "\l")) ;; Like this?
<efraim>good news, git-lfs builds with gccgo-12
<Kolev>(issue (string-append %default-issue " \l")) ;; or like this?
<futurile>Morning Guixers
<Lumine>Morning
<gabber>\o
<futurile>I think you know you've reached a new level of paranoia when you've decided to add a *third* method to doing backups heh
<futurile>My plan for today is to investigate using Borg backup - any fans?
<janneke>ACTION stopped doing any backups (except pushing config/home git archives) since guix
<janneke>and backing-up all their git source archives on the internet
<futurile>you don't have 'content' - photos, documents, hundreds of mailboxes, miscellaneous stuff (that you won't look at again but like old books are hard to throw away) :)
<efraim>Can I suggest git-annex? You can sync the data between your machines, with version history, keeping everything as a "live backup"
<gabber>nckx: i've created that simplest-possible reproducible test case: https://termbin.com/nfhf3
<gabber>i wonder: is this a bug (i have my doubts)? am i abusing the copy-build-system for what it's certainly not designed to be (i'm like 28% sure)? would a simple-script-build-system be something Guix as a project might enjoy? or should maybe the trivial-build-system section in the manual be extended to host an example or two of how to make scripts install and work with it?
<futurile>efraim: hmm - never thought of that - I currently rsync materials but don't get version history (and I find rsyncs syntax odd so have to look it up every time!)
<efraim>I use it for my family photos. Offsite is my parent's house, with an old laptop. They're also encrypted in S3 compatible storage online so I don't need to have all of them on each machine.
<efraim>A full recovery would be `git clone, cd, git annex init, git annex remoteadd, git annex sync --content`
<janneke>futurile: not really, mail is stored in imap and photos i sync from time to time between mulptiple machines
<efraim>also the files are viewable as-is, so if I die and my machine gets broken they're still viewable in a file browser on the offsite machine
<janneke>ACTION should possibly look at git-annex
<efraim>paste of my pinephone directory, I only have 2 of 6 files available locally https://paste.debian.net/1297521/
<futurile>efraim: how do you do the encryption part, is that part of git-annex, or you use a second step?
<efraim> https://git-annex.branchable.com/special_remotes/S3/ looks like when I run `git annex initremote`I used encryption=pubkey, using my gpg key as the encryption key
<dcunit3d_>Can guix packages written to validate a download using a GPG signature/keyring? In the manual, I don't see references to 'keyring' and i guess supporting this means distributing pubkeys
<cartographic>jpoiret: Picking up from last night, I must admit I'm still confused about how to set my locale properly. I would have expected `export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale` to do the job, after a `guix install glibc-locales`, but no luck.
<Kabouik>Anyone else seeing a significant CPU hog with Telegram-desktop on Guix?
<Kabouik>Actually bpytop doesn't report a huge CPU use (0.3%, plus I run telegram-desktop with `cpulimit -l 35` to mitigate the issue a bit), but somehow my fan speed is very different whether telegram-desktop is running or not. I never observed that on other distributions but maybe I just didn't look.
<Kabouik>htop reports 2 to 3%. Weird that it's not the same values, but hey.
<jpoiret>cartographic: yes, that's what I would also expect
<jpoiret>dcunit3d_: having the hash is enough to verify it, no?
<jpoiret>unless you're fetching it with git-checkout ofc
<cartographic>The GUIX_LOCPATH environmental variable in my guix-daemon.service is pointing to a guix profile which doesn
<cartographic>...which doesn't exist. `/var/guix/profiles/per-user/root/guix-profile/lib/locale`. Swapping out /root/ for my username would at least resolve properly. Though a) I'm not sure why I need to do this all of a sudden and b) I'm not sure how to restart guix-daemon to load it?
<jpoiret>doesn't have one?
<jpoiret>but the locale problem you're experiencing is coming not from the daemon but from the guix command itself
<jpoiret>the LC_ALL environment variable that you're temporarily setting affects only the guix command, it shouldn't change anything for the guix daemon iirc
<jpoiret>but in any case, for that profile to exist you should `guix pull` as root
<cartographic>cool, well running a `sudo guix pull`. Otherwise still scratching my head as to what's happened
<cartographic>I'm sure it must be a cockpit error, but as for what...
<cartographic>Would this be right (in my .bash_profile) `export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"`
<jpoiret>software sometimes behaves in mysterious ways...
<jpoiret>yes :)
<jpoiret>did you install glibc-locales?
<cartographic>I think so... once this guix pull has finished i'll have another try!
<futurile>cartographic: maybe it's obvious, but you're clear that the daemon uses the instance of guix that is in roots profile. And separately, your user has their own profile. So you have to install glibc-locale into roots 'profile', and into your own users 'profile'.
<cartographic>So doing both `guix install glibc-utf8-locales-2.29 glibc-locales` and `sudo guix install glibc-utf8-locales-2.29 glibc-locales` hasn't helped.
<cartographic>Woops my irc client crashed.
<cartographic>Is it right that echoing my $GUIX_PROFILE returns $HOME/.guix-extra-profiles/terminal instead of $HOME/.guix-profile as it is set in my .bash_profile?
<futurile>that's not the default - the default is the $HOME.guix-profile. I assume you've been playing with 'extra-profiles' from the cookbook
<cartographic>That's very possible 8)
<futurile>you probably need to get back to the default profile
<dcunit3d_>jpoiret: yes, i just went with that. i'm trying to put together a package for regpg. repology says that only nix has packages for it, but i'm not sure why more people don't use it. the usecase is niche, but the tool is useful and i learned a ton by making notes on its manpages.
<snape>ci.guix.gnu.org is down?
<cartographic>futurile: yes, i guess you're right.
<nckx>Kolev: cons is for lists. Also don't forget to escape the \ for Guile, so "\\l".
<gabber>snape: yes.. let's ping some admins. rekado (?) nckx (?) civodul
<nckx>Wat.
<nckx>Oh.
<snape>guix build -K -f whatever --no-substitutes
<snape>guix build: error: https://ci.guix.gnu.org/api/latestbuilds?nr=1&job=guix.x86_64-linux&jobset=guix&status=0: HTTP download failed: 504 ("Gateway Time-out")
<snape>Why can't I build even without ci.guig.gnu.org?
<snape>This weird to depend on an external server when nothing I need is outside my computer
<snape>(except the source)
<futurile>cartographic: profiles are fun, but they can be confusing initially
<snape>How can I say: stop trying to connect to ci.guix.gnu.org to my guix command?
<jpoiret>snape: you can ask `--no-substitutes` to build something without downloading substittues
<nckx>snape: Remove whatever you're using to poll ci.guix, probably channel-with-substitutes.
<nckx>This isn't related to substitution per se.
<jpoiret>snape: oops mb, read too fast and didn't see you had that already enabled
<nckx>Yeah, that disables substitution.
<snape>nckx but it obviously doesn't work
<snape>what `guix build` has to do with a channel?
<nckx>What do you mean it obviously doesn't work?
<snape>look my first message: I did use --no-substitute
<nckx>Read mine ;-)
<snape>remove whatever you're using to poll ci.guix
<nckx>Yep.
<snape>how can I do that?
<nckx>Nothing to do with --no-substitutes.
<snape>I didn't even know I was polling ci.guix
<snape>ok, but how then?
<nckx>I can't know.
<nckx>Are you sure you're not using channel-with-substitutes-available?
<snape>i'm on a guix checkout
<snape>i don't run 'guix pull'
<nckx>That's where this query comes from, not related to Guix substiting something.
<snape>I don't use channels
<snape>well except the guix daemon maybe
<nckx>Server should be back.
<snape>thanks
<nckx>Here is the cuirass-web log: https://paste.debian.net/plainh/6fb8d551
<nckx>I restarted it but am not in a position to investigate.
<FaelGil>Hi everyone! I'm a begginer using Guix SD and I just managed to get it working (I'm typing this on it, yay!), but I would like to remove some preinstalled packages on my default gnome. I tried the docs, but couldn't find anything about how to configure the gnome-desktop-service-type to not install specific packages (e.g. the gnome-text-editor).
<FaelGil>Does anybody knows how to do that? Thanks!
<zamfofex>FaelGil: You have to modify the ‘gnome’ package.
<nckx>It's not beginner-trivial (sorry) but the gist is: you set the 'gnome' field of 'gnome-desktop-configuration' to a (package (inherit gnome) (propagated-inputs (modify-inputs (package-propagated-inputs gnome) (delete [STUFF])))))
<nckx>Where STUFF are package name strings.
<zamfofex>The “stuff” to delete can be seen here: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/gnome.scm#n10014
<FaelGil>I thing I got it. I'll try that.
<FaelGil>nckx I'm, a beginner at using guix, but I'm a seasoned dev starting on this scheme world (coming from clojure, hehe)
<FaelGil>Thanks guys!
<nckx>Ah!
<snape>nckx: I'm trying to understand what calls channel-with-substitutes-available
<snape>got a backtrace: https://paste.debian.net/1297532/
<snape>do you know how to expand the `…`?
<nckx>COLUMNS=9999 but it has to be set for the failing process tree. Now, c-w-s-a should be called by the client, so COLUMNS=9999 guix should work?
<snape>indeed thx so much
<nckx>Glad I could help with something at least :-/ I'm stumped if you're not (inadvertedly) calling it yourself.
<snape>nckx: c-w-s-a is call-with-?
<nckx>Yes.
<nckx>Phone.
<snape>^^
<snape>well I don't think I'm calling it myself, I'm running guix build -f <(cat config.scm <(echo my-package)) to build a package that is in my config.scm
<snape>oho
<snape>ok
<snape>I got it
<snape>mb
<snape>I call it myself ^^
<nckx>OK, but at least that's less bizarre than 'just' guix build throwing this, since you are at least smuggling a full system configuration in there ;-)
<nckx>Ah.
<nckx>Too slow!
<nckx>And, forgive me, but lol.
<snape>lol
<FaelGil>nckx I tried to configure my server like this (sorry if formatting is weird): (service gnome-desktop-service-type
<FaelGil>     (gnome-desktop-configuration
<FaelGil>       (gnome (package
<FaelGil>         (inherit gnome)
<FaelGil>         (propagated-inputs
<FaelGil>    (modify-inputs (package-propagated-inputs gnome)
<FaelGil>            (delete 'gnome-text-editor)
<futurile>FaelGil: according to my notes it is (delete "gnome-text-editor")
<FaelGil>futurile still, no luck :(
<futurile>FaelGil: and is it a `propagated input`, not an `input` - sorry I don't use this part of Guix - so you might have to wait for others
<nckx>I see you're using a symbol instead of a string.
<nckx>ACTION has to go.
<zamfofex>FaelGil: Perhaps past the relavant part of your system configuration here: https://paste.debian.net
<FaelGil>zamfofex here it is: https://paste.debian.net/1297536/
<FaelGil>the entire config.scm
<zamfofex>Use ‘propagated-inputs’ and ‘package-propagated-inputs’ instead of ‘inputs’ and ‘package-inputs’.
<FaelGil>I was using that before, that's why I changed it
<zamfofex>Was there an error, or did it just not remove the unwanted packages?
<FaelGil>It errors: "error: package: unbound variable"
<zamfofex>Add ‘(guix packages)’ to your ‘use-modules’ declaration.
<FaelGil>zamfofex Yep, apparently that did the trick :)
<FaelGil>rebuilding now
<FaelGil>Yes, that worked :D . Thank you so much zamfofex nckx futurile!
<gabber>is it possible to invoke a REPL from within a build process?
<gabber>like in python you just insert "import pdb; pdb.set_trace()" somewhere, run the program and as soon as execution reaches that point you're in an interactive environment
<nckx>'Not yet' :-)
<nckx>One can dream that a Guile daemon will facilitate adding such cool features (you can't just 'drop to the terminal' when a build breaks, it's not that simple).
<gabber>yeah, i know. it's not even about this failure-proof-in-the-worst-case-scenario-you're-still-in-some-repl lisp-machine nostalgia - more like: can i (without anything breaking) invoke that repl from a (new) build phase to inspect what has and hasn't happened?
<jpoiret>gabber: i don't think so, the output you're seeing is traveling through multiple pipes, managed by the daemon
<jpoiret>you'd have to call your local plumber
<gabber>ACTION laughs
<jdek>I ran `guix system image -t wsl2 ./test.scm` on an ubuntu machine, imported the resultant rootfs to wsl. Within this new guix installation, am I able to access the 'current configuration' somehow?
<gabber>jdek: WDYM with "access"
<gabber>if you execute $(guix system describe) you see which configuration file this was configured from
<lechner>Hi, what are some of the pitfalls when trying to git am a patch from email, please? What does "It does not apply to blobs recorded in its index." mean from git am? Thanks!
<jdek>gabber: think it's just easier to show the nixos option I'm thinking of, does this have an equivalent? https://search.nixos.org/options?channel=unstable&show=system.copySystemConfiguration&from=0&size=50&sort=relevance&type=packages&query=copysystemconfiguration
<gabber>jdek: is it possible that link doesn't load without JS? unfortunately i have 0 experience with NixOS
<jdek>oh sorry. here's what it says: If enabled, copies the NixOS configuration file (usually /etc/nixos/configuration.nix) and links it from the resulting system (getting to /run/current-system/configuration.nix)
<gabber>ah, that's a service or something similar, then?
<gabber>what are you trying to do, exactly? do you just want to modify and re-configure the system you have?
<jdek>pretty much, but I want a copy of the configuration of each generation
<gabber>i think you might need a little bit of shell-scripting-magic for that - but it shouldn't be too hard
<jdek>right, something like a oneshot service I guess?
<gabber>no, more like a $(guix system list-generations | grep "configuration file:")
<gabber>sorry, i am by far not a Bash magician
<jdek>oh right thats probably where the confusion is coming from
<jdek>my guix system describe doesnt have a configuraiton file
<gabber>ah, because it's a fresh install
<gabber>so you just take the one you've configured from
<jdek>right, lemme try that and see what generation 2 looks like
<jdek>This is what I used to generate the rootfs (guix system image -t wsl file.scm), in the new system using guix system reconfigure file.scm results in 'gnu/system.scm:866:2: error: missing root file system', is there a import I'm missing? https://www.irccloud.com/pastebin/FFWVs2Oz/test.scm
<jdek> https://www.irccloud.com/pastebin/raw/FFWVs2Oz/test.scm
<gabber>jdek: come to think of it, i'm not sure what you're trying to do: reconfiguring a system would imply writing a whole operating system (with a bootloader) to disk, which might not be what you want to do
<jdek>right, probably a mismatch in what I'm expecting. In nixos the entire system is configured from one file and if you need to install software then you edit that file and then reconfigure the system which would diff the expected configuration with the current configuration and then only install that one piece of software
<jdek>I see that I can install software with guix install, but how would I do something like edit users?
<jdek>>User accounts and groups are entirely managed through the operating-system declaration.
<jdek>wouldn't this imply that I have to reconfigure the entire system?
<jackhill>It looks like QA might not have picked up the patches correctly for https://qa.guix.gnu.org/issue/66887 I'm not the original subitter though, and not exactly sure why (when I had this problem, I hadn't gotten the threading right). What's the right thing to do, whould I reach out to the submitter?
<gabber>jdek: adding users happens by changing the system configuration and reconfiguring. i'm sorry, i have no clue about WSL
<cbaines>jackhill, yeah, Patchwork sees it as three separate series https://patches.guix-patches.cbaines.net/project/guix-patches/list/?series=&submitter=&state=&q=66887&archive=&delegate=
<cbaines>I guess something that git send-email does and that Patchwork relies on hasn't been done
<cbaines>you can resend the series yourself, or ask the submitter to do so
<apteryx>cbaines: I guess patchwork relies on threaded submissions; we use 'thread = shallow' because it makes more sense with Debbugs
<apteryx>see etc/git/gitconfig
<apteryx>patchwork is typically used with plain mail lists that do not associate an issue with the series
<apteryx>maybe it can be configured to not assume that
<cbaines>I don't think Debbugs makes a differece to Patchwork, or that we need it to. I think using git send-email is always advisable though
<gabber>is there a way to ensure an invocation of (local-file) uses a path relative to that file that contains the (local-file)?
<janneke>hmm building gnutls-3.8.1 hangs for me on --system=riscv64-linux using qemu
<janneke>(there's also no substitutes, of course)
<janneke>oh wait, using --no-grafts helps a lot!
<futurile>Q: What do you all use guix `time-machine` for? I'm writing a blog post about it - and looking for use-cases.
<janneke>in our team we use time-machine to be sure we can use eachother's substitutes
<futurile>So far ones I have are (a) fixing build environments, (b) using an earlier version of an application, (c) Testing a branch / installing an application from a branch
<janneke>also, i'm using time-machine to build reproducible (pack) binaries
<gabber>futurile: in software development it's used to ensure using the exact same binaries (not having to recompile stuff)
<gabber>also: you can use it to make use of newer software, not just older
<gabber>finding out where something broke (i.e. a package or a feature of a program in Guix)
<futurile>janneke: by build reproducible (pack) binaries - you mean you've got all the inputs and the version of Guix defined so you always build in the same 'build environment' - right?
<janneke>yes, it's really your a) ,but then also for producing pack's
<futurile>gabber: hadn't thought about 'making use of newer software' - sort of implicit in 'installing an application' from a branch - but yeah need to point that out
<gabber>i only mentioned it bc you listed "using an earlier version of an application". it's a time-*machine*, not just a history book ;)
<futurile>janneke: I haven't covered / looked at `guix pack` yet - need to look at that
<futurile>gabber: hah yeah - good point!
<gabber>like: i have some CI set up with jenkins (bah) where i don't need to `guix pull` manually - i just prepend my guix build commands with a `guix time-machine -C channels.scm` and know the right point in (guix) history is in use
<futurile>yeah still getting my heard around that - I got quite confused about times when I had to do `guix pull` vs using time-machine to get into a shell
<gabber>do we have some "write your own shepherd service (extension)" for dummies somewhere? or maybe a suspiciously simple example (or two) for after-hour hackers?
<jackhill>cbaines: thanks. I've gone ahead re-sent. Hopefully I did it right 🤞🏼️
<KE0VVT>jackhill: Hi!
<KE0VVT>(Caleb here.)
<jackhill>ACTION waves
<Kolev>I'm having trouble getting SSH to work in Guix Home. https://codeberg.org/csh/dotfiles/src/branch/testing/home-configuration.scm
<voroskoi>I think I am doing something fundamentally wrong here: https://paste.debian.net/1297595/
<voroskoi>the commented out snippet with only (guix build utils) works, but the fancy stuff does not
<voroskoi>gives the error at the end of the paste
<futurile>I don't understand, you're doing a substitution, that only needs guix build utils
<voroskoi>futurile: package-version is undefined if I do not import the (guix package) module
<voroskoi>and rust-libc is undefined without (gnu packages crates-io)
<voroskoi>at least it gives those errors to me
<futurile>Is that the whole file? Do you have use-module lines at the top?
<futurile>e.g. #:use-module (guix build-system cargo)
<voroskoi>I just edited gnu/packages/crates-io.scm
<futurile>so you're directly editing a checked out version of guix
<voroskoi>yes, and I try to build with ./pre-inst-env guix build -f gnu/packages/crates-io.scm
<futurile>using ./pre-inst-env build <your package name@version>
<KE0VVT>Help: Guix Home: files.drv failed. home-configuration.scm: https://bpa.st/WDCQ
<futurile>voroskoi: sorry, no clue - I guess you have to look through packages and see if you can find someone doing something similar. Or stick with loosening the requirement using your text transformation (the line you've commented out). I've only done a text transformation like you did.
<voroskoi>futurile: well, thanks for taking a look at it
<futurile>voroskoi: I guess you could say ^0.2.148
<Kolev>I have a problem with Guix Home. https://codeberg.org/csh/dotfiles/issues/7
<Guest25>Is ungoogled chromium software free software ?
<zamfofex>Yes.
<ieure>It is free, but I'd never use it. IMO, using *any* Chrome/Chromium browser helps Google's stranglehold on the open internet.
<ieure>It is free, but it's also part of a larger system of control. I do not recommend it.
<zamfofex>Ideally, I feel, we could have Chromium forks that become independent of Chrome’s own decisions. But in practice, it’s a very arduous task maintaining a browser independently of what it was forked from.
<Guest25>Weird problem, my sound in youtube in chromium only works, when I start icecat before. And in icecat sound works great .
<Guest25>anybode an idea, why this is ?