<raingloom>amz3: the plain guix system vm kind, I slightly modified the example system description i found in the online manual
<raingloom>hmm. is there a simple way to combine the vm description with all the package i currently have installed? i kinda wanna play around with mininet but it runs as root and is recommended to be run from a vm.
<raingloom>and i'd like to have all my tools in the vm so I can debug it.
<raingloom>but guix package -i doesn't work in the vm due to the shared store not allowing writes
<samplet>raingloom: You could put everything in the “packages” field in the configuration (including mininet).
<samplet>Although then you would have to restart the VM to test a new package description.
<raingloom>samplet: but then i also have to add each package's use-package-module line
<samplet>raingloom: There’s “specifications->packages” which will find the packages for you automatically.
<kabo>oh, ungoogle-chromium is available in guix, that's cool :)
<nckx>kabo: Icecat is Firefox with a few tweaks. It does the same job and runs the same extensions but stock Firefox has both some ‘features’ that we don't want and rather strict rules about how much you can change while still calling it Firefox.
<nckx>That last bit might be relaxed nowadays but it's the historical reason.
<acommn>Well, I would like to ask if any of you know of a good guide or documentation for "Manual System Installation" (i.e. how to manually write my own configuration file and understanding what each form does.)
<reepca>acommn: Have you checked out the info manual? If you've got guix, run 'info guix "Using the Configuration System"' and it'll take you straight to the documentation
<reepca>The section after that, 8.2, gives a more in-depth understanding of what each of the fields mean
<acommn>reepca: thanks, I've read chapter 3 from the info file, but not 8.2, gonna give it a shot.
<reepca>on an unrelated note, would it be wise to add a 'packages' field to the <user-account> record that describes the packages that should be installed for that user initially (doesn't overwrite changes on reconfigure or anything)? It'd make it easier for people to 'guix system init' straight to a system they're more familiar with, without having to clutter their system profile with user-specific packages.
<samplet>reepca: I think something like that will come when we figure out how to configure Shepherd for user sessions.
<rekado>it doesn’t let you jump directly to the sources of a package from a package variable name in your configuration file, but it does allow you to browse the package list, install packages, view their sources, etc, all within Emacs.
<rekado>with plain Emacs + Geiser you can jump to the *definition* of a package, but you can’t directly jump to the source code associated with a package.
<civodul>we're about to publish the recommendations you can see in that thread
<civodul>that could explain the networking issue in GNOME
<civodul>mbakke: the issue is: @ hash-mismatch /gnu/store/b4cdp9sp44848348lrpzbfafhmjqf8nr-harfbuzz-2.4.0.tar.bz2 sha256 1mpah6kwqid1kxsj4rwqsniivqbrx231j65v51yncx6s0dch0dch 0vrkvdlmihdg62a4c6h5kx27khc33xmb95l50zgnwnavvpwyyw5l
<nckx>What's the [is there a] recommended way to automatically ‘,use (guix and friends)’ in my .guile? I tried ‘(add-to-load-path "/home/nckx/.config/guix/current/share/guile/site/2.2")’ and it's obviously *not* the right way since it auto-compiles everything.
<civodul>rekado: that's expected, /ccache is "special"
<civodul>the auto-compilation is for the 'guild' file itself
***ChanServ sets mode: -o nckx
<civodul>it's a bit ugly, i think we should add a --no-auto-compile there
<civodul>nckx: you would need to augment %load-compiled-path as well
<rekado>civodul: oh, okay. I only noticed because of an unrelated problem: /tmp wasn’t writable so the flycheck file could not be written there.
<rekado>add-to-load-path has no companion for the load-compiled-path, unfortunately.
<rekado>huh, I’m scp’ing a Hurd qemu image to berlin; locally it’s 4.9G but I’ve already transferred more than 22G.
<atw>hi alexeys! Can you say a bit more about what you're trying to do?
<dftxbs3e>hi, I tried Guix under Virtual Box and when logging in with GNOME, it just goes back to the login screen, it wont login, the password is correct and it doesnt warn about bad password
<samplet>atw: About regex: I don’t think there’s built-in syntax, but you could make a reader extension for it.
<samplet>dftxbs3e: Hi! I just saw a message in the mailing list about this. All I can tell you off the top of my head is that it works under QEMU. I’m not sure what’s wrong, unfortunately.
<samplet>dftxbs3e: Did you use the installer or the VM image?
<alexeys>I want to set environment variable for example. Like in ordinary linux distribution I will change /etc/environment file or write config in ~/.config/environment.d/
<alexeys>But in guix - I don't know where to look...
<ison[m]1>Well anything in your home directory is still going to work with guix too. Have you also considered setting them in ~/.profile or ~/.bashprofile? Not sure how to set system wide env vars in the guix system config though. I was actually wondering how to do that myself too.
<kmicu>alexeys: alas /etc/environment is not an ordinary way to setup envars. Usually we use shell config files to setup those.
<samplet>alexeys, ison[m]1: The “/etc/environment” file gets built by “session-environment-service”. You should be able to adjust what’s in there from the “services” field in your config.
<samplet>(I’ve never tried, mind you, but it looks promising.)
<alexeys>~/.profile or ~/.bashprofile won't work for application started outside shell. Like all desktop applications.
*kmicu wanted to add above that Guix uses /etc/environment when you use PAM.
<alexeys>kmicu: Yes I know that it is generated, hence the question
<alexeys>samplet: Thanks, will look into it. Couldn't find anything on “session-environment-service”, even about its existence :)
*kmicu wonders why session-environment-service* is not in the manual.
<ison[m]1>alexeys: It should affect all applications. But it has to be picked up when the session starts, so if you're just modifying them now you'd have to probably restart your xorg-server
<rekado>alexeys: the documentation is in info format; you can run “info guix” to display the manual.
<samplet>alexeys: I remembered it from some hacking that I did a while ago. I don’t see it in the manual. :(
<kmicu>alexeys: what to do depends on the choice of desktop environment (login manager) and shell. E.g. we could use ~/.xsession to define envars for desktop apps. Do you use default Guix System config (with GDM and GNOME)?
<alexeys>kmicu: Yes I'm using default GNOME+GDM for now
<alexeys>It doesn't look into .xsession now as far as I know, at least not modern gnome
<rekado>alexeys: GDM in Guix has been patched to look at .xsession AFAIU
<alexeys>On Ubuntu for example I had to find about environment.d for example
<samplet>alexeys: There’s a per-user analog of “/etc/environment”, too, and our GDM should respect it. It’s at “~/.pam_environment”.
*kmicu hopes that ‘In addition, ~/.xsession files are honored. When available, ~/.xsession must be an executable that starts a window manager and/or other X clients.’ still works.
<alexeys>kmicu: I see. But still it doesn't look like reliable solution, I mean it will work only for gdm probably...
<samplet>dftxbs3e: That’s fair. Unfortunately I can’t easily test with VirtualBox. That being said, we are squashing a fair few GDM/GNOME bugs lately, so hopefully this will improve soon. If I find a way to test it out, I will certainly reply to the message on the list.
*samplet can’t remember if VirtualBox is free software or not.
<nckx>From Oracle: ‘The “VirtualBox Guest Additions” are a set of software drivers and utilities that are shipped as a subset of the VirtualBox base package and that are installed inside a virtual machine for better performance and usability. Like the VirtualBox base package, the VirtualBox Guest Additions are licensed under the GPLv2.’
<kmicu>Great, assuming coreutils presence is impurity. Thank you dftxbs3e, you catch bugs like true entomologists.
<nckx>However there remains the question of the FSDG, where shipping the Guest Additions would be ‘recommending’ VirtualBox which ‘recommends’ its proprietary extension pack and can't be built without a proprietary compiler ☹
<dftxbs3e>unfortunately the paste service isnt https aha
<ggoes>for the record, i had the same gdm problem earlier this morning when installing guix with xfce on a bare metal (well, plastic) thinkpad this morning. i couldn't get it working and don't have time to look too much into it at the moment.
<kmicu>(Guix System on my server is as bad for you as proprietary software. You acctually cannot even tell what I serve you.)
<dftxbs3e>samplet: When something in the GNOME user session bugs, then it logs you out, so any of those errors could be fatal enough to log out
<ggoes>civodul: awesome! i'm going to try this in just a minute
<dftxbs3e>also how hard is it to port Guix to a new architecture?
<dftxbs3e>I have a Talos II as my main machine and I could only install Guix on my non-free laptop!
<dftxbs3e>because ppc64le is not supported but x86 is
<nckx>dftxbs3e: Sad that nothing has changed. I think is was last year (or the year before) that Oracle basically told their users that they weren't allowed to find security bugs. Because that would imply they were looking too closely at the software and that violated some EULA.
<kmicu>Srsly GDM ‘GdmLocalDisplayFactory: maximum number of X display failures reached: check X server log for errors’ 🤦
<samplet>We patched out some checks so that it would work better under emulation, but it still needs some special stuff (I’m being vague because I don’t remember the details).
<nckx>dftxbs3e: Everything used to emulate a crappy Cirrus card from the 90s but those days are ending. I guess VirtualBox doesn't by default, but it's worth checking in the VM settings what the other options are.
<nckx>Maybe something in between that GNOME still likes.
<dftxbs3e>nckx: well I'll get KDE, how can I get KDE?
<dftxbs3e>I'll look into alternate graphics options
<nckx>dftxbs3e: I can't say, I've only every used i3, I'm a filthy troglodyte.
<kmicu>[Jokin’] Quikly! Package KDE. We need to keep TalosII folk.
<kmicu>Repentance for mentioning Flatpak was proclaimed.
<dftxbs3e>I understand how it's clearly not the best to package all apps in the same format but what I see good in it is the sandboxing etc, it even has File Chooser UIs to avoid having to give root file system access to an app
<kmicu>So what’s better: fixing networking issue in QEMU or investing time in supporting VirtualBox gfx drivers?
<kmicu>dftxbs3e: I only joking. Flatpak tackles different tradeoffs and it’s great that users have that as an option. In the future we probably could create Flatpacks directly from Guix (like in case of Docker images).
<dftxbs3e>kmicu: I think that should be it, the sandboxing features of Flatpak are great, each distro should have their Flatpak repo if they want to
<dftxbs3e>instead of the centralized Flathub like right now
<Aurora_iz_kosmos>samplet: I'm trying to get how the store functional interface deals with operation failures and how to write code with a similar pattern.
***omnistegan is now known as gromni
<Aurora_iz_kosmos>Anyway, that was an idle curiosity thing from looking at the manual. I'm getting a weird issue with a "pack"'d icecat.
<gromni>Hey, I'm wondering if someone here can help me. I'm trying to install guix system in a vm, and I needed to run some commands to set up networking. So I selected to exit the (very nice) graphical installer. I'm trying to figure out if I can start the guided installer from the shell now that I have my networking up. Is there a command for this?
<Aurora_iz_kosmos>Everything is squares with utf-8 numbers instead of characters on the guix-less machine I put it on...
<samplet>Aurora_iz_kosmos: Looking at the code, the store monad is just an alias for the state monad, so I’m guessing the monadic interface doesn’t handle operational errors at all.