IRC channel logs

2026-03-11.log

back to list of logs

<PotentialUser-0>Does anyone know how to write a config for Guix on LVM?
<kestrelwx>Hello!
<janneke>o/
<efraim>does anyone know of a way to write a bash function where I can type in one language and have the letters translated to the correct key presses for if I were typing in english?
<Guest33>Does sway-configuration->file from the sway window manager home service accept packages?   Doesn't look like it according to the source code, but i'm still learning programming so i'm not sure.
<efraim>Guest33: I haven't looked at that recently, but here's a link to my sway-configuration if that helps https://codeberg.org/efraim/guix-config/src/branch/master/efraim-home.scm#L923
<efraim>currently the outputs block doesn't work for setting the monitors
<efraim>* for my config
<Guest33>efraim i'm not sure if sway home configs are 1:1 with sway-configuration->file.  I'm using it for greetd-wlgreet-sway-session in the system config and it doesn't seem to be adding the packages.  But the manual says sway-configuration->file is serialized so i'm probably formatting it wrong.
<Guest33>the regular sway-configuration is non-serialized according to the source code, which is why i think i'm doing it wrong.
<kestrelwx>efraim: In English as in QWERTY?
<kestrelwx>Sort of like `reverse-im` in Emacs?
<efraim>yeah. sometimes I forget to switch back to qwerty before typing in the terminal
<efraim>the terminal generally doesn't like this: `אןצק עוןס נוןךג /gnu/store/0xn9vy4l0xr086aa6wa4qidd41g716wi-guile-avahi-0.4.1.drv`
<csantosb>Morning all ! futurile, maybe it would help candidates to arise if they're free to propose a project to work on, according to their motivation and experience
<adanska>is there a precedence of what substitute servers are chosen to download from when multiple servers offer the same substitute?
<adanska>I want to make sure that the cloudflare mirror I use has precendence over other servers in such a case
<identity>adanska: it just goes down the list in order
<adanska>identity, cool, thats what I thought. I'll rearrange my config to put it at the top.
<identity>so if you have (cons "https://guix.example.org" %default-substitute-urls) then it will try <https://guix.example.org> before anything in %default-substitute-urls
<adanska>identity, thanks. I've set up my substitutes in a way that I want now. Appreciate the help :)
<futurile>morning all
<efraim>is it possible to use the copy-build-system if the source itself is the file I want to install?
<efraim>probably not worth it if I need to remove the 'unpack phase
<gabber>efraim: not sure i understand but i'd guess that that's what it's for
<Kabouik>I see we have a notcurses package but not the python implementation; asking just in case: does the notcurses packages we have provide that or are we just missing a python-notcurses package to use the library with python?
<Kabouik>I'm sorry if that's a silly question.
<identity>Kabouik: you can run ‹cd $(guix build notcurses)› and check if there is anything python in there
<Kabouik>Thanks. Doesn't look like it unless I missed something.
<Air4x>Hi everybody, for some reason tofi-drun and 'rofi -show drun' do not show all desktop enties in $HOME/.guix-home/profile/share/applications/. I tried to remove the cache for tofi and rebooted a bunch of times but the problem remains.
<czan>Is there any pattern to the ones that it does/doesn't show?
<Air4x>Not that I can see
<Air4x>It also fails to show desktop entries for program installed through flatpak
<efraim>I remove ~/.cache/tofi-drun at login and and logout but you already mentioned that
<Air4x>I'll try again and see what happens
<efraim>in my bash-profile I have export XDG_DATA_DIRS=$XDG_DATA_DIRS:${XDG_DATA_HOME}/flatpak/exports/share
<efraim> https://codeberg.org/efraim/guix-config/src/branch/master/efraim-home.scm#L1294-L1301
<Air4x>so i need to modify the $XDG_DATA_DIRS variable to add the desktop entries installed by flatpak?
<efraim>I think so. I believe flatpak complains that it's not in the XDG_DATA_DIRS when running updates, so it seems to help
<Air4x>understood
<efraim>as seen in `flatpak update`
<efraim>hmm, the 'check phase in the cargo-build-system doesn't use #:features
<nsix>Hi. I was reading this paper which says
<nsix>"The functional packaging approach proved particularly useful in the
<nsix>ongoing efforts to move dozens of users and their custom software environments
<nsix>from an older cluster running Ubuntu to a new cluster running a version of
<nsix>CentOS, because software packaged with Guix does not depend on any of the
<nsix>host system’s libraries and thus can be used on very different systems without any
<nsix>changes to the packages."
<identity>nsix: please do not paste a lot of lines in the channel, thanks.
<Air4x>efraim: now tofi shows all the desktop entries created by flatpak, but it still skip the zen browser one, even if it's in .guix-home/profile/share/applications
<Air4x>I found out why zen.desktop is not shown, the Comment key contains a newline which seems to break programs that tries to parse the entry.
<test202020>i reconfigure system with master and that save are problem with login. found that gnome-shell --wayland working with home profile install.
<rebel1725>Hello
<test202020>hi
<rebel1725>I am suffering from a Guix System installation problem
<rebel1725> https://bin.disroot.org/?52988c8ac99ec057#25mWsd9bPAvEvzcR8gaKiHmaxEXmiqfhbHfXqRG6sY6H
<gabber>rebel1725: `#:extra-packages' does not seem to appear in the os declaration you posted
<rebel1725>so what is the solution?
<rebel1725>neither helper-packages nor extra-packages works
<gabber>sorry, i can't help you if i don't understand where the problem emerges or how you get there
<evilsetg>rebel1725: If you look into gnu/system/linux-initrd.scm base-initrd calls raw-initrd so I would suggest you use raw-initrd with the #:helper-packages option.
<rebel1725>evilsetg: You mean changing (gnu system linux-initrd) to (gnu system raw-initrd) in (use modules ...) ?
<evilsetg>No, I mean replace base-initrd with raw-initrd down where you define the initrd of the operating system. Both are procedures described in https://guix.gnu.org/manual/devel/en/html_node/Initial-RAM-Disk.html.
<rebel1725>thank you
<evilsetg>But maybe going with the default initrd like you tried by removing that part is easier.
<rebel1725>The default initrd is not activiting my LVM VG and will get me stuck in the early Guile.
<evilsetg>Are you sure that is an issue with the default initrd? I successfully use lvm on luks and default grub+initrd on my machine so that should work, at least in principle.
<evilsetg>Wait, you use LVM on LUKS as well, right. Then I think you need another lvm-device-mapping mapped device entry for your VG.
<evilsetg>This is what I use for mapped devices: https://paste.debian.net/hidden/91b96bd2
<PotentialUser-0>Why does this GRUB error occur when invoking `guix system init {config} /mnt`: `/gnu/store/<hash>/sbin/grub-install: error: /gnu/store/<hash>/grub/i386/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory` ?
<podiki>this-package-input and different outputs, does it just find the default "out" even if package inputs doesn't have that?
<podiki>is that there assoc-ref is still needed?
<efraim>:out is the default if it isn't specified, although I thought this-package-input worked on labels
<podiki>specified in this-package-input how?
<podiki>oh rather than string name using list with package and output?
<podiki>e.g. "gcc:lib" doesn't work, neither `(,gcc "lib")
<efraim>(gexp-input (this-package-input "zstd") "static") vs #$(this-package-input "casacore")
<efraim>ACTION LOVES git grep
<podiki>ditto
<podiki>oh i never saw gexp-input before
<podiki>is that newish? was that the last thing with old assoc-ref that didn't have gexp equivalent?
<efraim>I'm not sure, I would bet it's related to #$ being shorthand or something
<yelninei>i guess that the libgc warnings are a good indicator that things are progressing ... and that guix build guix is not stuck
<podiki>(oy and this is in some complicated gexp map form, always guessing to get the right order here)
<yelninei>so my guix just took 15mins to LOAD guix/tests.scm during make, i dont think this is normal
<podiki>newish: https://codeberg.org/guix/guix/commit/d9190abbd20f15ea5b55abdd51e1376f05055850
<theesm>hi guix o/
<test202020>hi. how to right check packages updates to guix repo with system reconfigure
<ieure>test202020, I'm not sure what you're asking. What do you want to check about the packages?
<ieure>test202020, I think your native language is Russian? Guix is a very international project, you might want reach out to help-guix (https://lists.gnu.org/mailman/listinfo/help-guix), there may be someone able to help you better.
<test202020>ieure: i mean, that i am update some package in ~/src/guix but how to install my version thouth guix system reconfigure?
<yelninei>./pre-inst-env guix system reconfigure ... (as root)
<test202020>sudo?
<yelninei>sudo -E might work as well, but you could end up with root owned files in your home
<ieure>test202020, Why does it need to be in the system profile? I usually test with `./pre-inst-env guix shell the-package-name', which lets me run it without it being in any profile.
<test202020>yelninei: guix system command not found did you mean system - that strange
<test202020>ieure: this package require root ans instsll in system
<ieure>test202020, What package?
<test202020>ieure: gdm
<ieure>test202020, I see, that makes sense. The best way I've found to do this is to `guix pull' with a channels.scm that points to your local clone, then reconfigure using that guix.
<test202020>ieure: i try this, but this is very very slow, but i do not see progress with pulling
<ieure>test202020, It is slow, but has worked for me. You might be able to `./pre-inst-env sudo guix system reconfigure', but I'm not sure. I think I've tried reconfiguring from a working copy a few times and found it was too difficult.
<test202020>ieure: how many time you spend on waiting?
<test202020>how much
<ieure>test202020, I don't recall. `guix pull' like that is definitely not fast.
<test202020>ieure: relative to fetching from web that fast for me. but whats problem for local updating...
<test202020>maybe wrong channel definition?
<ieure>test202020, It has to clone and index the repo and verify commits, because it doesn't have a cache of that checkout already.
<test202020>ieure: that require less that hour?
<ieure>test202020, It depends on your hardware.
<test202020>ieure: ok, you are define channel in home or system config?
<ieure>test202020, That's not relevant (but, I put them in my system config). Create a channels.scm file pointing to file:///path/to/your/clone and `git pull -C channels.scm'. That'll give you a guix generation including your changes, which you can use to reconfigure.
<test202020>guix pull? from home?
<test202020>i wait for pulling from my channels file
<ieure>test202020, `guix pull' as your user, using a different list of channels, with the Guix channel pointed at your local checkout.
<test202020>ieure: pull is done, but havw strange error. what name for channel you setup?
<test202020>error not with my change
<ieure>The name shouldn't matter, I've kept the guix name when I've done this.
<test202020>aborting update guix channel to commit ... which is not descendant of ...
<ieure>test202020, The base of your local clone is older than the commit listed in `guix describe'. Either --allow-downgrades, or rebase your working copy.
<Rutherther>or just use time-machine, especially if it's just a one-off throw off for testing a service, I don't see any reason for pulling your user profile to it
<test202020>ieure: now i cherry-pick my commit, but error is same
<ieure>test202020, You can use --allow-downgrades.
<avigatori>o/
<futurile>evening avigatori