20 ms·
I Love Arch, but GNU Guix Is My New Distro
- podiki 5y agoHello, author here, happy to answer questions and discuss! This is the first in more Guix articles coming from me, as I started when building my newest desktop [0]. Next will be more details on exactly how my system is set up, but you can find (somewhat out of date as we work on big updates in Guix) my dot files here [1]. [0] https://news.ycombinator.com/item?id=28628344 https://news.ycombinator.com/item?id=28628344 [1] https://github.com/podiki/dot.me/tree/master/guix/.config https://github.com/podiki/dot.me/tree/master/guix/.config
- Dracophoenix 5y agoWhat's your experience with Guix and Nix on laptops? Which among them are sufficiently supported to be daily drivers? Have you tried running Proton on Guix? For someone who is interested in the Guix/Nix ethos but wants to keep Arch, is there anything aside from sentimental reasons that I would be missing by just running the Nix/Guix package managers on top of Arch .
- rowanG077 5y agoI'm using NixOS on my last two laptops without issue. One was a Surface Pro which required a custom kernel and right now I have an XPS 13. Proton runs fine as well.
- Dracophoenix 5y agoI'm assuming the kernel you're referring to is the one from the linux-surface project? If so, which model and configuration of Surface Pro were you using? Were you ever able to get LTE, touchscreen, and pen to work? How is the battery life? Is your XPS 13 the latest revision (i.e. 9310)? If it is, how does Nix handle sleep since Intel had removed S3 support?
- rowanG077 5y ago> I'm assuming the kernel you're referring to is the one from the linux-surface project? If so, which model and configuration of Surface Pro were you using? Yes I used the linux-surface project. I used a Surface Pro 2017 with an Intel Core i7-7660U CPU. It doesn't have LTE. But touchscreen and pen worked without issues after some fiddling with configs. Battery life was a little worse then on Windows but not dramatically so. > Is your XPS 13 the latest revision (i.e. 9310)? If it is, how does Nix handle sleep since Intel had removed S3 support? Yes it's the 9310 model. I use suspend (systemctl suspend) and it works fine. I'm not sure how I can check whether S3 is actually supported. Battery life is about the same story as the Surface. A little bit worse compared to windows.
- jacobmischka 5y agoIf you're curious about XPS support in general, I use Arch and force S3 on my 9380 [1] and it works fine, also slightly worse battery when sleeping than ideal (loses about 5-10% in 24 hours, or so), but fine. [1]: https://wiki.archlinux.org/title/Dell_XPS_13_(9370)#Sleep https://wiki.archlinux.org/title/Dell_XPS_13_(9370)#Sleep
- podiki 5y agoI haven't used Guix on my laptop much other than as a package manager or to work on patches when I'm not at my desktop. So I can't say much, but Guix does tend to be heavier on storage IO needs. You can always use substitutes to avoid much building, unless you are doing things you need to build locally, like custom patches or other changes. Proton I've only ran through Flatpak Steam. As I mentioned, Nonguix's Steam is limited to older Proton, but I think we'll get that fixed pretty soon once some bigger updates on Guix settle down (today was actually a "sprint" day to fix up changes coming to the main Guix branch soon). But yes, worked great in Flatpak. The main thing you'll miss from Guix in just using it as a package manager is the system configuration stuff. That will still be your host OS. You can play around with installing different things with Guix, package transformations, and even now trying out the (still in progress) Guix Home [0] to configure your dot files. Guix as a package manager will still give you a good feel of the advanced features it has for managing packages, without touching your host OS. [0] https://guix.gnu.org/manual/devel/en/html_node/Home-Configuration.html https://guix.gnu.org/manual/devel/en/html_node/Home-Configur...
- opan 5y agoGuix System works great on a ThinkPad T440p besides the default WLAN card. I removed mine for now. If you flash coreboot (to get around the hardware whitelist), you should be able to put in one compatible with linux-libre. There's also the USB dongle solution if you're into that.
- srvmshr 5y ago> In short, GNU Guix is both a package manager you can use in any distro and a full-fledged GNU/Linux distribution, that is modern and advanced Why not just use Nix, which is more battle tested?
- podiki 5y agoShort answer: I prefer Lisp (Guile Scheme in this case) to anything else really. Maybe the Nix language is fine, but I can already read Guix code and prefer working in the land of parens.
- pxc 5y agoAs a NixOS user who has (recently!) played with Guix, I don't think ‘battle testing’ is a great reason to prefer Nix. Guix has an excellent CLI and awesome docs. It's stable and plenty usable. All being in one, high-level language like Scheme makes it seem really easy to hack on, and I think that's part of why its CLI is so good already. Nix is faster, it supports macOS, and its package collection is much bigger because it's older. But Guix seems great to me, too! If you think you might like it, try it.
- kohlerm 5y agoWhat about number of packages available? Does guix have something comparable to Nix Flakes?
- angio 5y agoTo be fair, the appeal of Nix (and Guix) to me is that it's very easy to create binary packages of applications I use. Coming from Fedora, it takes minutes to create new packages compared to hours with RPM.
- rekado 5y agoGuix has lots of packages in the default channel, and you can add any odd git repo as another channel providing extra software. There are quite a few popular channels, such as non-guix (with things like vanilla Linux), guix-science, guix-past, etc. As a maintainer of R packages in Guix I'd also like to point out that many R packages in Nix actually need more work to build them, so the number of packages in Nix is rather inflated. Guix also goes to great lengths to actually build things completely from source, such as Java packages, or to minify JavaScript from source files.
- smitty1e 5y agoFor U.S. military types, "geeks" means https://en.wikipedia.org/wiki/Global_Command_and_Control_System https://en.wikipedia.org/wiki/Global_Command_and_Control_Sys...
- froh 5y agoTo save you a click: Global Command and Control System (GCCS)
- earthscienceman 5y agoA question that nags me every time Guix comes up, or nix, is about the benefits relative to a normal distro on something like ZFS. Are reproducible builds ever going to be all that important to a user? Rollbacks seem like the key feature here and that seems much better left up to the filesystem, not the package tools. This way your storage is also aware of what you're doing.
- pxc 5y ago> Are reproducible builds ever going to be all that important to a user? Being able to take your setup with you to a new computer is pretty cool, right?
- kohlerm 5y agoYes, but not sure that is enough value for non developers. For developers being able to easily use different versions of tools in different projects reliably is a game changer
- MarcScott 5y agoThe main selling point for me, on NixOS is the ability to switch machines easily, and know that I'm basically using an identical build. Throw your config files onto GitHub or a flash drive, then do whatever you want on your desktop. Want to switch to your laptop? Pull any changes down, do a quick rebuild, and you have an identical system. If you buy a new machine, just install nix, pull down your config files and you're good to go. It used to take me hours to set up a new device, often relying on carefully crafted bash scripts, to try and replicate builds, that needed to be constantly maintained. Not any more. BTW, I rarely rollback, and if I do it's because I've monumentality fucked something up, which is a great feature.
- dane-pgp 5y agoReproducible builds are an important part of efforts to secure the software supply chain. Ideally you want multiple independent parties vouching that a given package (whether a compiled binary, or a source tarball) corresponds to a globally immutably published revision in a source code repository. That gives you Binary Transparency, which is already being attempted in the Arch Linux package ecosystem[0], and it protects the user from compromised build environments and software updates that are targeted at a specific user or that occur without upstream's knowledge. Once updates can be tied securely to version control tags, it is possible to add something like Crev[1] to allow distributed auditing of source code changes. That still leaves open the questions of who to trust for audits, and how to fund that auditing work, but it greatly mitigates other classes of attack. [0] https://github.com/kpcyrd/pacman-bintrans https://github.com/kpcyrd/pacman-bintrans [1] https://github.com/crev-dev/cargo-crev https://github.com/crev-dev/cargo-crev
- geokon 5y agoIs there a reason neither Guix nor Nix have made an LTS-type repo? A rolling release seems at odds with the stability granted by reproducible builds. Maybe I have a miopic view, but what's nice with Ubuntu LTS is you know everyone and their mothers has built and tested their packages/libraries/executable against the lib versions provided by Ubuntu 18.04 or 20.04 or whatever. You also know those libs, at their given versions, will get patched as issues come up. If all your libraries are constantly churning then you have no idea of the quality of the libs you're linking to (and that lib's dependencies are also churning in turn). You can pin versions, but there is no guarantee what you're pinning to will be patched and fixed as issues come up
- choeger 5y agoI'd guess a lack of hands. Maintenance is the expensive and boring part of a distro. And seriously, why should an unpaid volunteer help to maintain a stable foundation for all the companies that rely on, e.g., Ubuntu 18.04? I wonder if one could create a business out of supporting such distributions against a comparatively small fee.
- massysett 5y agoI doubt it, folks interested in long-term support can already use Debian, Ubuntu, Red Hat, etc.
- solatic 5y agoNix has a stable channel (six-month release cadence, with one month of support overlap), which isn't LTS, and even just the stable channel is "expensive" enough to be difficult for the project to justify. Supporting LTS has a genuine non-trivial cost in engineering man-hours. Nix has the technological underpinnings to make it easier to support LTS, in theory, but in all likelihood there won't be an LTS channel without corporate sponsorship providing funding to employ LTS maintainers, akin to Red Hat / IBM, Canonical, SUSe, etc. Consider threads like https://discourse.nixos.org/t/what-should-stable-nixos-prioritize https://discourse.nixos.org/t/what-should-stable-nixos-prior...
- 5y ago
- deleted 5y ago[deleted]
- marcan_42 5y ago> Guix System is an advanced distribution of the GNU operating system. It uses the Linux-libre kernel It's worth pointing out that the linux-libre kernel is developed under the FSF doctrine that "binary blobs are bad unless you can't see them". This has been taken to its logical extreme here, where this Linux fork actively removes security warnings informing users that they need to update their CPU microcode, because microcode in ROM is fine but dynamically loaded microcode updates are not, in this school of thought. https://lists.gnu.org/archive/html/info-gnu/2018-04/msg00002.html https://lists.gnu.org/archive/html/info-gnu/2018-04/msg00002... I have no interest in software that uses arbitrary religious dogma (that doesn't help users' freedom, as those users' CPUs have proprietary microcode whether they know about it or not) to justify censoring critical security vulnerability notifications for users. I regard this as actively evil anti-user behavior.
- kzhukov 5y agoWell, for some people loading an arbitrary binary code without possibility to check what's inside it is a critical security issue as well.
- medo-bear 5y agoexactly. and people promoting closed source security updates should print this risk out in most clear fashion. if we want to hold GNU to account for security then we should definitely do so with closed source vendors too
- marcan_42 5y agoThose people are already running arbitrary binary code without the possibility to check what's inside, it's just that it was loaded before purchase. If you don't trust Intel's updates, then you also can't trust their CPUs in the first place.
- Santosh83 5y agoThere is a bit more nuance here though. There may be users who trust their old systems but no longer trust the current state of its manufacturer or their binary only updates. Proprietary blobs go against the core freedom as defined by FSF so I can understand why they block by default but IMO they should allow informed users to override. Simply censoring without allowing a user to bypass is not user (or freedom) respecting. The power to choose should be with the user, whom the FSF claims to represent.
- Gentil 5y agoI moved to NixOS and came back to Arch because setting up development environments for general purpose computing felt tricky. I was on a schedule so had to drop it. Is it the same for Guix? I don't know why it should be any different. But still asking. Also, am guessing people will likely have hardware compatibility issues for Guix which isn't a problem for NixOS since they bundle non-free drivers etc.
- podiki 5y agoNot sure what kind of development environments you mean, but one of the great features of Guix (and Nix I think) is to easily provide isolated environments. This can help you control dependencies and other things separately from the main OS. In guix this is as easy as `guix shell some packages` or add a `-D` for development libraries needed for those packages instead. You can then easily reproduce the same environment on another machine.
- Gentil 5y agoSetting web development environments and mobile dev environments or anyway in which different languages are involved. NixOS have some documentation on it. Like I said, this wasn't because they (NixOS and Guix) implement it bad, but because of my time constraints as mentioned before. But it also felt like, apart from learning the new way of using my system which NixOS/Guix works, now I have to work with how to deal with different languages. To me this felt like a big overhead. As a n00b of NixOS (not a n00b on Linux BTW), I have questions like doesn't this mean I will have lesser support on setting up something new development when something new comes along? This honestly have made me take my time on going back to NixOS. Cos I cannot just compile the packages directly like I could in normal Linux distros. Right? Or do correct me I am wrong. Like I said, the time constraints (+ pandemic) have made it hard for me to make time. Maybe you could correct me if I am wrong somewhere and make me understand it better. :)
- kaba0 5y agoFor “tmp-like” codes, I had a folder with debian installed. I could systemd-nspawn into it for a basically zero-overhead “standard” unix system. But for slightly larger projects, creating a package description was always worthy. I especially liked having a shell config where entering a directory automatically put the necessary packages in scope.
- Kessler83 5y agoI just wanted to say: Great article! It made me wanna try out Guix!
- podiki 5y agoThank you! It is fun, try it as a package manager, in a VM, or as a distro. Lots to learn I found, which is fun for me.
- ricardobeat 5y ago> being on the bleeding edge as 64-bit went mainstream, compiling kernels (and everything else) on Gentoo, to more recently VFIO and then Proton That’s a very unique definition of “fun”.
- atemerev 5y agoThis is why many of us are in the profession.
- atemerev 5y agoGuix is excellent, however, I use CUDA heavily in my work, and it is hard to plug nVidia drivers into Guix.
- jkljkljkl1 5y agoCan you find out if these support your graphics card? If they do, you can just add a channel pointing to this git repo. https://gitlab.inria.fr/guix-hpc/guix-hpc-non-free/-/tree/master/non-free https://gitlab.inria.fr/guix-hpc/guix-hpc-non-free/-/tree/ma... How to add a channel https://guix.gnu.org/manual/en/html_node/Using-a-Custom-Guix-Channel.html https://guix.gnu.org/manual/en/html_node/Using-a-Custom-Guix...
- ckastner 5y agoI guess that in their mind, they're producing code for some utopic x86 system that does not have non-open microcode baked in, in which case their approach would be right. This is a complete denial of reality, of course, and at the cost of the user. Religious dogma, as you put it, seems like an apt description.
- marcan_42 5y agoTheir approach is firmly stuck in the computing paradigm of the 70s and 80s, much like Stallman is personally stuck in the social narrative of the same era. The FSF and him refuse to change and adapt to the times. But since reality doesn't care about their refusal to adapt, and they can't just throw their hands up in the air and say nothing is free any more and you should just live off the grid and reject all technology, they instead have built a deliberately obtuse set of rules to declare certain things out of scope, so they can maintain the illusion of freedom for their followers while making concessions behind the scenes (and even actively working with manufacturers to devise silly workarounds that fit into that framework, see e.g. the Librem 5's ridiculous secondary CPU core and external flash dance so they can claim the RAM training blob doesn't make their device non-free). Then they're very careful to never talk about this unless prompted; the fewer people know about all these secret blobs they're running anyway, the better. It's basically cult-like behavior - this kind of control of the information and narrative that followers get is a defining characteristic. None of this helps users, of course; what would help users would be being informed about not just exactly what blobs exist, but what the risks are, how they might affect their privacy and security, what update options exist, and whether they can be audited or replaced with free versions in the future. But the FSF doesn't care about any of that. They just want to pretend they live in a blob-free utopia. Edit: Ah, the downvotes have started. I guess the FSF fans have showed up. I hope you're not using an off the shelf mouse to click on the downvote button; those all run proprietary USB HID firmware.
- tptacek 5y agoThis comment was strong until the last paragraph about the downvotes.
- 5y ago
- someuname 5y agoWho maintains this and why should I trust them.
- pxc 5y agoHow is this case different than for any other distro?
- podiki 5y agoIt is a GNU project. The maintainers are listed on the website and of course all code, commits, etc. are publicly available.
- kdtsh 5y agoYou can inspect it freely, the entire distribution is maintained as a single git repository: https://git.savannah.gnu.org/git/guix.git https://git.savannah.gnu.org/git/guix.git
- hyperstar 5y agoI tried installing Guix System maybe about a year ago, but had problems with LVM on LUKS with full-disk encryption and missing and outdated documentation. Has this situation changed?
- podiki 5y agoI haven't done that setup but I know various people that use Guix (on the IRC channel) have an encrypted setup. I'm not sure their exact file structure, but it in general full disk encryption is supported; any issues should be bugs. You can always ask on the IRC channel to get a feel of what people have done and anything that might be tricky.
- assbuttbuttass 5y agoJust an anecdote, I accidentally broke something in my Guix system config but I couldn't figure out how to debug the scheme errors, and I had to reinstall
- grumbel 5y agoThat's my experience as well. Guix error messages can get quickly completely unreadable, as you are five layers depth into some Scheme macro expansion and wherever that code originally came from that caused the problem is long forgotten by the time the error message is created. Having a whole system, including the package database, build out of raw Scheme really doesn't feel like a good idea. It sure is flexible, but also really brittle and the performance is quite horrible. I am currently in the process of switching over to Nix, which handles that all a bit more sanely.
- heeeman 5y agoYeah, that always seems to be the problem with embedded DSLs. Eventually you need to know your way around the host language.
- podiki 5y agoWe can definitely improve the error reporting (e.g. just the other day there was a patch to better improve error reporting in a system configuration to go directly to the configuration line rather than the system that uses that code). Submitting bugs with unhelpful error messages to Guix and/or Guile developers is much appreciated I hear. However, it should be hard to break a Guix system, since you can always roll back. Of course you can find a way (I changed an ext4 flag that turns out Grub doesn't like, but that has nothing to do with Guix), but as long as you let Guix do its job and try not to manually work around it, you should be able to undo everything. Of course nothing is perfect, but I hope you reported it. In my experience the Guix devs and community is keen to improve.
- opan 5y agoYou couldn't boot an older system generation and then fetch its version of the config to get back to a working state?
- aidenn0 5y agoAs much as I love lisp and hate the Nix expression language, I'm interested in actually getting things done more than I am in preserving software freedom, so I'm on NixOS.
- rekado 5y agoGuix makes it very easy to add whatever non-free software you want via channels. You just won't get it with the default installation.
- aidenn0 5y agoI suppose I (perhaps unfairly) pre-judged the Guix community based off of past experiences with libre-only distros. I have memories of listserv threads and IRC conversations where it felt like people were trying to catch people daring to run proprietary software on their distro just so they could shut down the conversation with "This distro only supports running Free Software"
- NoOn3 5y agoIf it wasn't for AMD GPU closed firmware I could use GNU Guix with linux-libre kernel.