IRC channel logs
2026-04-21.log
back to list of logs
<lilyp>I do use use-package with Guix – the only special thing to consider is that you can quite easily make conditional blocks depending on $FEATURE-autoloads which probably won't translate that well to other ways of handling Emacs packages. <lilyp>You can go the old-fashioned way of using package.el directly to manage your installations. That is less declarative than the Guix way to be honest, but it's also non-surprising – you update the packages when you literally do so. <aliu>as a novice user who's looking into guix packaging i'm a bit confused at the deliberated draft of GCD 6. of the paragraphs about leaf packages, is the first one supposed to only apply to old versions and the second paragraph supposed to apply to both old and new? <folaht>Hey there, I'm still trying to locally create a package variant. I so far have created one, but it doesn't seem to be used by the guix system. <folaht>$ realpath $(guix build xkeyboard-config) <folaht>\/gnu/store/mbf9a6znimzaf9rh7j4wn4c8iq5wjd5a-xkeyboard-config-2.44 <folaht>$ guix package -I xkeyboard-config <folaht>xkeyboard-config 2.44 out /gnu/store/2r2vd9wfnrlf075vjwfg82b5k79pf2ir-xkeyboard-config-2.44 <folaht>2r2vd9wfnrlf075vjwfg82b5k79pf2ir-xkeyboard-config-2.44 has my patch included, but mbf9a6znimzaf9rh7j4wn4c8iq5wjd5a-xkeyboard-config-2.44 seems to be the one that my guix system is using. <trev>cuirass teasing me with approvals on a PR 😊 keep thinking it's merged finally <untrusem>trev: just wait for 3 years, till i become committer <sibl>Hey all ! I try to mount 2 nfs share with guix system but it doesnt work, it adds the right entry to fstab tho, so mount -a works, but the herd service to mount them fails <sibl>I have nfs-utils in my system packages <sibl>the error I get is: In procedure mount: mount "192.168.0.13:/gnu/Storage/media/tvshows" on "///storage/media/tvshows": Invalid argument <sibl>(file-system (device "192.168.0.13:/gnu/Storage/media/movies") (mount-point "/storage/media/movies") (type "nfs") (mount? #t) (check? #f) (options "soft,_netdev,nolock,ro")) <sibl>this is one of the entry <sibl>ok i jut had to remove _netdev <niklas>Hi, I am a bit lost, maybe someone can help me. It is probably just me misunderstanding something about Guix. I installed Guix a few days ago on top of my Linux distro. Now, when I run `guix describe` it says I am on commit `230aa373f315f247852ee07dff34146e9b480aec` (which is two month old, the `1.5.0` release). Running `guix pull` does not change <niklas>that. When I run `guix pull --list-generations` it shows me 3 generations, all using commits newer than the one shown by `guix describe`. Is this expected? What do I need to do to actually _use_ the new generation (I tried `guix pull -S 3`, which is the newest one, but it just says `switched from generation 3 to 3` and `guix describe` does not <niklas>I goes to a symlink that is linked to `/var/guix/profiles/per-user/root/current-guix/bin/guix` <Rutherther>niklas: can you also try "hash guix" then? and then "guix describe" <niklas>Hmm, I am using the fish shell, which does not have `hash`. Running `bash -c hash` (not sure if that would actually do anything` says `hash: hash table empty` <niklas>I opened a bash shell and tried `hash guix`, but the output of `guix describe` does not change <folaht>niklas, can you post the outputs on debian's pastebin? <Rutherther>that's misunderstanding what hash does, it's pointless to run it on new shell. Anyway, okay. So what exactly is output of guix describe? <niklas>No, I am running this as my non-root user <Rutherther>oh, then your PATH is wrong, it goes to root's guix <niklas>I tried following the docs but I may have mixed things up <Rutherther>so what ended up in your PATH? Yes, this isn't right, ton of programs won't work for you because you aren't sourcing all the env vars the profiles need <Rutherther>ideally use fenv source of the etc/profile in both ~/.guix/current and ~/.guix-profile. Always set GUIX_PROFILE only to the profile you're souring and unset it at the end. <Rutherther>and ensure the homedir is of your user, currently it sort of seems it's going to root's home <niklas>Is it enough if I instead source the output from `guix package --search-paths`? <Rutherther>yes, sourcing "guix package --search-paths -p ~/.guix-profile -p ~/.config/guix/current" is fine <folaht>How great is fish by the way in comparison to bash? I never used fish. <niklas>Is fenv a command, because I can't seem to find anything about it? <niklas>For interactive use I prefer fish, because it comes with niceties such as `ctrl + backspace` working, and it can autocomplete previously used commands if you do `ctrl + f` which I find especially speeds up my `cd`ing <folaht>I still have my issue with wanting to create a package variant locally. I have two xkeyboard-config packages now and it seems the wrong one is being used. <folaht>At least I think that's what been happening. <folaht>How can I even know which installed package is being used? <folaht>realpath $(guix build xkeyboard-config) <- Like this? <folaht>guix package -I xkeyboard-config <- What does this show then? <folaht>I'm a bit confused what's the difference between the two. <Rutherther>folaht: just change the name, otherwise it's not really clear which one will be chosen <Rutherther>folaht: guix package -I searches through your installed packages. Whatever package you installed with that name, be it available in your current channels or not. Guix build xkeyboard-config uses specifications to match the package, looking through all packages, looking for package with xkeyboard-config name. It collects all of them and chooses the highest version. If there are multiple such packages, it chooses the first one it saw <folaht>Okay, does the guix system decide which package to use in the same way 'guix build package' does as well? <Rutherther>guix system? guix system doesn't decide any packages, you decide by the tools you use. So what tool did you use? Ie. did you refer to the scheme variable, did you use specification->package and so on. <folaht>I frankly have no idea. I would assume that xkeyboard-config is part of %base-packages. <Rutherther>so what are you asking about specifically, are you asking about the xorg service? or what part of guix system? <Rutherther>but generally when a service is made in guix channel, it refers to a specific scheme symbol, so making your own package somewhere will not replace it <folaht>Ohhh... so it's the service I need to change, not the package. <folaht>I'm completely unfamiliar with services <Rutherther>you need to change the config of the service to refer to your own package, yes (that is if it supports it, it might not in some cases) <Rutherther>but how exacly depends on what service we're talking about <folaht>I assume that would be "set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout))" in my /etc/config.scm file <Rutherther>so gdm then, as long as you did not supply another argument to set-xorg-configuration. In that case, you need to change the "server" field of xorg-configuration. You will need to make a package out of xorg-server package that will replace xkeyboard-config <folaht>By gdm, you mean gnome display manager? <folaht>Or is that an abbreviation for something else? <Rutherther>yes, set-xorg-configuration configures gdm by default <folaht>Wouldn't that mean that I use lightdm? <folaht>Interesting. How can I check to be sure? <Rutherther>the default in %desktop-services and in set-xorg-configuration is gdm <folaht>Well I believe you. I just want to know now where I can see this. <Rutherther>use guix system extension-graph on your system config.scm, to see the services that are used. It gives out dot format, so you can use something like xdot to visualise it <folaht>Since I'm not familiar with that yet, I just installed inxi and it's telling me that gdm is indeed the display manager. Wow! <Rutherther>if you wanted to change it you can remove gdm out of %desktop-services and change set-xorg-configuration to extend lightdm or anything else you prefer, it's accepting the service to extend as second argument <jlicht>Does anybody else see "@@MENUNAME" in their application launcher since a couple of days ago? <Niklas>Rutherther: thank you for help before, I am using fenv now and `guix describe` now uses the correct generation. Much appreciated :) <nox>I would love to see this merged, as the current release available in Guix (0.1.22) is more than 2 years old. <simendsjo>I see evdi and libevdi was deleted, but the commits does not indicate a reason for this. I cannot find any issues nor PRs for libevdi either. I use these (although with different commits), so several of my systems are now broken. <ieure>simendsjo, Please file an issue. I don't see a reason, either. <ieure>The package has been broken for over a year, according to that issue. <ieure>Is this your first reconfigure in over a years? <ieure>It does indeed seem to have been broken for a long time. <simendsjo>ieure: I've been using other commits than is in guix. But I see I only use it for one system, and that has indeed not been updated since december as I'm on parental leave. I guess I'll fight this when I get back to work in August ;) <ieure>simendsjo, Congratulations! There's a link to the Nix package in the issue I pasted, it sounds like some patches are needed to get evdi to build. I'm sure it would be accepted again as long as the build isn't broken. <simendsjo>ieure: Thanks, it's the second one, so I feel like I have negative time available now ;) I'll probably have to add it back as I seem to remember needing DisplayLink (unfortunately). <folaht>I'm trying to add the lightdm service, but when I enter "sudo guix system reconfigure /etc/config.scm" I recieve the warning "guix system: worning: service 'lightdm' could not be found" <simendsjo>ieure: I copied evdi and libevdi over to my own packages, and my bumped versions still works. So I think the packages was deleted a bit too quickly and should just have been bumped instead. It's a bit too late for me to create a PR, but I'll add a comment on the issue at least. <simendsjo>Is anyone running guix system on an ionos vps? <ieure>untrusem, Will be on the 150.0 update when I'm off work.