94 pointsby todsacerdoti8 hours ago7 comments
  • 6ak74rfy4 hours ago
    I've had a passing curiosity about Guix, so it was good to read this report.

    One thing I didn't find is Guix on servers. I am all-in on NixOS for both my daily driver desktop and couple of servers, and adding more of either will be simple modifications to my flake repository. I really appreciate that simplicity and consistency. Does Guix offer that?

    The other thing is package availability: it's amazing on Nix. Plus, they remain relatively fresh on the unstable channel. How's that on Guix?

    • uncletaco4 hours ago
      Guix on servers is ok. I run Guix in my homelab.

      The vast majority of what you’d want in a Guix server can be found in the services section and parts of the documentation that lay out how to build services. But it doesn’t have as many services available as nix.

    • k__an hour ago
      How do you deploy NixOS to your servers?

      I started a project with nixos-anywhere, deploy-rs, and compose2nix. However, I struggle a bit with secret management.

      • drdaeman13 minutes ago
        There are plenty of options: nix-sops, or nix-age, or whatever you would like - past the overall idea the implementation details are purely a matter of taste how you fancy things to be. Key idea is to have encrypted secrets in the store, decrypted at runtime using machine-specific credentials (host SSH keys are a typical option to repurpose, or you can set up something else). For local management you also encrypt to the “developer” keys (under the hood data is symmetrically encrypted with a random key and that key is encrypted to every key you have - machines and humans).

        Alternatively, you can set up a secrets service (like a password manager/vault) and source from that. Difference is where the secrets live (encrypted store or networked service, with all the consequences of every approach), commonality is that they’re fetched at runtime, before your programs start.

        I’m currently using deploy-rs, but if I’d redo my stuff (and the only reason I don’t is that I’m pretty much overwhelmed by life) I’d probably go with plain vanilla nixos-rebuild --target-host and skip any additional layers (that introduce extra complexity and fragility).

        Just a crude and somewhat haphazard summary but hope it helps.

    • wasting_time3 hours ago
      For servers you might want to try 'guix deploy':

      https://guix.gnu.org/manual/devel/en/html_node/Invoking-guix...

  • dietr1ch4 hours ago
    > merely pulling in Nixpkgs is an effort, due to the repository being massive.

    I've embraced daily shallow clone/fetches and the burden is now mostly just the 2GB of disk space.

    It's a bit annoying though that git doesn't make it easier. No one would shallow clone later screw up and download every commit anyway, I feel shallow clone repos should be set up with a different configuration that fully-embraces shallow history (not that the configuration options even exist today AFAIK).

    • dietr1ch4 hours ago
      I just tried 2hrs and it only uses 375M

          git clone \
              --single-branch \
              --shallow-since '-2 hours' \
              --origin 'upstream' \
              gh:NixOS/nixpkgs
      
      What's annoying later is that you MUST remember to always use shallow fetch and hard resets into upstream/$BRANCH

          git fetch \
             --shallow-since '-2 hours' \
             upstream \
             master nixos-unstable
  • kkfx4 hours ago
    My issue with Guix coming from NixOS is the missing first-class zfs support for root, crypto included, RustDesk, few other common services who are hard to package.

    Guix potential target IMVHO should be desktop power users, not HPC, NixOS while mostly developed for embedded systems (Anduril) or servers in general still take care of desktops, Guix apparently not and that's a big issue... Nowadays outside academia I doubt there are many GNU/Linux users who deploy on plain ext4...

    • blm126an hour ago
      For desktop usage, I would be absolutely shocked if ext4 isn't the most common filesystem by a pretty wide margin. Its the default on Ubuntu, Debian, and Mint. Those are the 3 leading desktop distros.

      No one is going to write a blog post titled "Why I just used the default filesystem in the installer" but that is what most people do. Things like btrfs and zfs are useful, complicated technologies that are fun to write about, fun to read about, and fun to experiment with. I'd be careful about assuming that leads to more general use, though. Its a lot like Guix and NixOS, in fact. They get all the attention in a forum like this. Ubuntu is what gets all the people, though.

    • eikenberry37 minutes ago
      Ext4 is still very popular as a solid, no frills filesystem. Btrfs is the primary alternative and still suffers from a poor reputation from their years of filesystem corruption bugs and hard to diagnose errors. ZFS and XFS only makes sense for beefier servers and all other filesystems have niche use cases or are still under development.
    • akshitgaur2005an hour ago
      See this config for an example guix config with zfs - https://codeberg.org/hako/Testament/
      • autumn-antlers14 minutes ago
        > Guix channels in use:

        > - guix (additional patches are used locally for root on ZFS support)

        i'm hopeful too, but think it may not be so simple (yet) >u< here's a more precise link

        https://codeberg.org/guix/guix/pulls/1917#issuecomment-69760...

      • kkfx14 minutes ago
        Thanks! A very nice set of configs. I've done something similar for NixOS and my LAN but never advanced at such point in Guix.
  • user39393825 hours ago
    Modern GPU drivers are a nightmare for open source. Wifi no better but slightly less critical. Power management. Forget Linux this should be the year of the NetBSD desktop but we can’t have nice architectures bc of economics in computing. The whole scenario makes sense but the emergent result sucks.
    • bayindirh4 hours ago
      > Modern GPU drivers are a nightmare for open source.

      Modern NVIDIA drviers. Let me fix that for you.

      Intel and AMD has their full stack in mainline already, and AMD made great effort to enable their cards fully under open source drivers, as their agreements and law allows. You can even use HDCP without exposing sensitive parts, if you want.

      Intel also works completely fine.

      However, NVIDIA's shenanigans and HDMI forum's v2.1 protectionism is something else completely.

      • gf0003 hours ago
        Modern NVIDIA drivers for their more recent cards are actually okay, again.
        • bayindirh3 hours ago
          Well, they might work, but they are far from OK.

              - An open source kernel module which talks with the card.
              - A set of closed source GLX libraries for acceleration support.
              - A signed and encrypted firmware which only works with this closed source driver package to enable the card.
          
          Nouveau drivers are intentionally crippled with a special firmware which enables the card to show a desktop, with abysmal performance and feature set.

          Nothing is OK about that.

          • gf000an hour ago
            Well, amd drivers sucked a whole lot (fglrx anyone?) before AMD made them open-source. And on every other front it's the same, as basically every other manufacturer. There is no such thing as open hardware.
            • bayindirhan hour ago
              I have used fglrx for a very long time, and have some adventures with it. I even knew people from the development team, actually.

              Well, having a driver agnostic closed source firmware is pretty different from an end-to-end closed chain with a driver-authenticating firmware.

              Also, while fglrx had some serious problems, they didn't wait two years to fix DVI DPMS issues like the green company.

              Yes, neither are open hardware at the end of the day, but we have almost infinite number of colors and infinite shades of gray. Like everything else, this is a spectrum.

              As I aforementioned, I'd love to have completely free hardware, but the world's reality works differently for many right and many wrong reasons. I'd prefer to use most open one I can get, in this case.

              • gf00022 minutes ago
                I agree with you on principle.

                But at the same time (adding more shades of color), part of the reason why Nvidia remained closed source for longer was precisely because they were supporting all the same features on both windows and Linux, while amd's Linux was (is?) always lagging behind. For ML use cases basically the only choice was Nvidia.

                (Nonetheless, I was very happy with my amd card, and now I'm very happy with a semi-modern Nvidia card)

      • plagiaristan hour ago
        I went with AMD for compatibility playing games, but AFAICT AMD ROCm is not in a great state for computation. Why can't I have both?

        That's something like what they're describing as "a nightmare," isn't it? "As agreements and law allows," is part of the nightmare. Under a modern OS, it should not be difficult to have the full capability of the hundreds or thousands of dollars worth of hardware you paid for.

      • drowsspa2 hours ago
        Honestly back when I was still in college one and a half decade ago, it was quite clear the whole Nvidia-only ML and AI libraries weren't a good idea
      • anthk3 hours ago
        AMD cards need propietary firmware.
        • bayindirh3 hours ago
          Yes, that's a problem if you want a fully free-software powered system. However, considering how we had firmware since forever, this is a compromise I can personally accept, for now.

          Having a completely Free Software firmware would be great, but I'm not sure barrier to this is as low as Free Software since there's involvement of IP blocks, regulation, misuse of general purpose hardware (like radios) and whatnot.

          I really support an end-to-end Free Software system, but we have some road to go, and not all problems are technical in that regard.

  • gurjeet4 hours ago
    TLDR: ... I'm getting a comparable experience to NixOS, with all the usual pros a declarative environment brings and without having to put up with Nixlang.
    • oasisaimlessly2 hours ago
      Instead, put up with a flavor of Scheme that looks suspiciously like Nix with some extra parentheses...
      • eikenberryan hour ago
        How the errors/debugging compare? From what I've read this is the main pain point with Nix where a more mature language like Guile should have a much better experience here. The article touches on this but I'd be curious of a more extensive comparison about this aspect.
  • shevy-javaan hour ago
    I understand his enthusiasm with NixOS but:

    > With Nix, however, it was a matter of just describing a few packages in a shell and boom, Ruby in one folder, no Ruby (and thus no mess) everywhere else.

    This approach was already done by GoboLinux in 2005. And even GoboLinux was by far not the first - versioned AppDirs existed for a long time before; even perl stow enabled that. NixOS just uses a modified variant e. g. via hashed directory names. But I already adopted a similar scheme as GoboLinux did soon after I switched to Linux in 2005 (well 2004 but mostly 2005 as I was still a big noob in 2004 really).

    > I started adding shell.nix files to all my little projects

    I appreciate that NixOS brought good ideas to Linux here; having reliable snapshots is good. If a user has a problem, someone else might have solved it already, so you could "jump" from snapshot to snapshot. No more need for StackOverflow. The HiveMind took over.

    But with all its pros, the thing I hate by far the most in NixOS is .. nix. I think the language is ugly beyond comparison; only shell scripts are uglier. I instead opted for a less sophisticated solution in that ruby acts as the ultimate glue to whatever underlying operating system is used. What I would like is a NixOS variant that is simpler to use - and doesn't come with nix. Why can't I use ruby instead? Or simple config files? I am very used to simple yaml files; all my system description is stored in simple yaml files. Since +20 years. That approach works very well (ruby expands these to any target destination; for instance, I have aliases for e. g. bash, but these are stored in yaml files and from that ruby then generates any desired target format, such as also cmder on Windows and so forth).

    > In fact GNU forked Nix fairly early and made their own spin called Guix, whose big innovation is that, instead of using the unwieldy Nix-language, it uses Scheme.

    I am glad to not be the only one to dislike nix, but boy ... scheme? Aka Lisp? Seriously???

    Young people use lisp? I somehow doubt that.

        (cons* (channel
              (name 'nonguix)
              (url "https://gitlab.com/nonguix/nonguix")
    
    Erm, no thanks.

    Why would users know what cons* does, anyway? That's stupid.

    YAML files exist for a reason. Keep. Things. Simple. (I know, I know, many use YAML files in a complex manner with gazillion nested indentation. Well, they are using it in a wrong way, then they complain about how bad yaml is.)

    > Since the code is pretty much just Scheme and the different mechanisms available are fairly well documented (see caveat below), the barrier to entry is much lower than with Nix in my opinion.

    Can't evaluate this. To me it seems as if NixOS may have changed, but Nix was always a big barrier. I decided to not want to overcome it, since I did not want to be stuck with a horrible language I don't want to use.

    • microtonal24 minutes ago
      This approach was already done by GoboLinux in 2005. And even GoboLinux was by far not the first - versioned AppDirs existed for a long time before; even perl stow enabled that. NixOS just uses a modified variant e. g. via hashed directory names. But I already adopted a similar scheme as GoboLinux did soon after I switched to Linux in 2005 (well 2004 but mostly 2005 as I was still a big noob in 2004 really).

      Nix already existed in 2003. Besides that Nix store directories are more ingenious than versioned application directories (or hashed directories), the hash in the output path is the hash of the normalized derivation used to build the output path (well, in most cases, let's keep it simple). Derivations work similarly (also using hashes). Moreover, since a derivation can contain other derivations as an input, the Nix store represents hash/Merkle trees.

      This makes it very powerful, because you can see which parts of the tree need to be rebuilt as a result of one derivation changing.

      But with all its pros, the thing I hate by far the most in NixOS is .. nix.

      I think it depends on your background. I did some Haskell at some point in my live and I like Nix. It is a very simple, clean, lazy, functional programming language. The primary thing I'm missing is static typing.

      I instead opted for a less sophisticated solution in that ruby acts as the ultimate glue to whatever underlying operating system is used. What I would like is a NixOS variant that is simpler to use - and doesn't come with nix. Why can't I use ruby instead?

      Because what nixpkgs does is not easily expressible/doable in Ruby. First, the package set is one huge expression in the end. That might seem weird, but it allows for a lot of powerful things like overlays. However, for performance reasons this requires lazy evaluation. Also other powerful abstractions require lazy evaluations (e.g. because there are some infinite recursions in nixpkgs).

      Second, the Nix packaging model requires a purity (though this gap was only properly closed with flakes). You have to be able to rely on the fact that evaluating an expression evaluates to the same result. Otherwise a lot of things would break (like substitution from binary caches).

      Third, things like overlays rely on fixed points, which can be done easily in a lazy functional language.

      ---

      Having used Nix for 8 years now, I have a long list of criticisms as well though :).

    • AreShoesFeet00036 minutes ago
      I am young (29). I like computers because they are essentially something hacky. There’s nothing more hacky than Lisp IMO. I will never complain about Lisp. I just like it.
    • k__an hour ago
      I used both Guix and Nix and found both their languages okay for the use-case.

      Nix was slightly better, since it's easier to format automatically than Lisp.

      • anthk32 minutes ago
        >Easier to format automatically than Lisp

        You wish. Emacs did that for free since the 80's.

  • uriahlight5 hours ago
    With respect, the author sounds too fickle for me to ascribe value to their "first impressions" of a distro.
    • hazebooth4 hours ago
      seems like they have pretty clear goals in mind. if they were changing distributions haphazardly id otherwise agree, but to me it reads that they're refining their taste.
    • 6ak74rfy4 hours ago
      I didn't read any fickleness in the post. Sure, they tried multiple distros - who hasn't - and that too over ten years.