Spool - My path to GNU/Linux

First acquaintance with GNU/Linux

My journey into GNU/Linux began about 2 years ago. At the time I installed my first distribution, I didn’t know anything at all about Linux, at most that it was something other than Windows.

My first distribution was Manjaro and it was terrible... In principle, to be frank, everything Arch based is disgusting garbage, I’ll tell you about that in another post. There were problems with Manjaro from the first days, problems with kde and with packages that I installed through the installer graph, this was my huge mistake, due to my knowledge of Linux I could not solve these problems.

After some time I decided to install the full-featured Arch. My skill was still low, which is why I installed via Arch-install... There were just a lot of problems in this script, but after a few days I was able to install it and installed my first window manager - Hyprland.

Open ⌄

Hyprland

I consider Hyprland average, and even below average. During the time that I used it, I had a lot of problems with backward compatibility when updating the package to a new version. Every time I had to edit the configuration, which was very annoying. I finally left it when the configuration was transferred to Lua. Of course, I understand why they decided to do this, to fix problems with backward compatibility, but still, I don’t want to rewrite everything from 0. And Hyprland itself no longer suits me, on my old laptop - Thinkpad X230, it was very fat. I simply couldn’t afford it, so I switched to another Wayland compositorium, which I’ll talk about in the next post.

Open ⌄

After using Arch Linux for a long time, I started trying different distributions, for example:Void Linux, Chimera Linux and Gentoo, NixOS, GNU Guix System and some BSD systems, which I will talk about later. Void and Chimera are good imperative distributions, excellent and lightweight, nothing to say. I would probably recommend them to almost every geek.

What about Gentoo?

The idea of Gentoo is great, as is the implementation, but I would not say that it is suitable for constant work. But using binary packages in Gentoo, well, I dаon’t know, the point is lost. It takes a very long time to compile each package, especially on my laptop. But anyway, I really liked the idea of USE-Flags and Ebuilds, Portage is an excellent package manager. Gentoo may be suitable for some people, but using Gentoo as the main distribution, I would say, is not the best idea, for each of their own.

Open ⌄

NixOS

I spent probably the longest time on NixOS. If I'm not lying, then 9 months. The distribution itself is wonderful, I really liked it. It was there that I first became acquainted with the idea of the declarative approach, and I really liked it. I immediately found a use for it, which cannot be done without a third-party program for imperative distributions. These are color themes, each of my configs in Nix took colors from colors.nix, thanks to which there was no need to copy-paste colors. This is just one example, and there are many more. I was also glad that I could return to NixOS literally at any moment and, with a minimum of commands, get my old system, even if it no longer existed. Then I started my acquaintance with git, because I need to store my projects and configs somewhere. I would say there are almost no disadvantages in it, except for small details, after which I moved to GNU Guix. I’ll tell you about this again in a separate post.

Example color.nix and foot.nix

Open ⌄
color.nix

{
  palette = {
    bg = "#0a0a0a";
    bg_dark = "#050505";
    black = "#0a0a0a";

    surface0 = "#121212";
    surface1 = "#1a1a1a";
    surface2 = "#242424";

    overlay0 = "#727169";
    overlay1 = "#8a8980";

    bright_black = "#545454";

    fg = "#c5c9c5";
    white = "#a6a69c";
    bright_white = "#c5c9c5";

    red = "#c4746e";
    green = "#8a9a7b";
    yellow = "#c4b28a";
    blue = "#8ba4b0";
    magenta = "#a292a3";
    cyan = "#8ea4a2";
    orange = "#e46876";

    bright_red = "#e46876";
    bright_green = "#8a9a7b";
    bright_yellow = "#c4b28a";
    bright_blue = "#7fb4ca";
    bright_magenta = "#938aa9";
    bright_cyan = "#7aa89f";
    rosewater = "#e46876";
    lavender = "#938aa9";
  };
}
    
foot.nix

{
  config,
  pkgs,
  lib,
  colors,
  ...
}:

let
  noHash = color: lib.removePrefix "#" color;
in
{
  programs.foot = {
    enable = true;
    server.enable = true;

    settings = {
      colors = {
        foreground = noHash colors.palette.fg;
        background = noHash colors.palette.bg;
        selection-foreground = noHash colors.palette.fg;
        selection-background = noHash colors.palette.surface2;
        urls = noHash colors.palette.cyan;
        regular0 = noHash colors.palette.black;
        bright0 = noHash colors.palette.bright_black;
        regular1 = noHash colors.palette.red;
        bright1 = noHash colors.palette.red;
        ...
      };
    };
  };
}
    

GNU Guix System

After trying many systems, I finally came to the only one that I probably won’t leave with. This is the GNU Guix System. Guix took the basis of Nix itself, but remade it in its own way, which is why there are differences there. But still, in essence, the distributions are very similar, because the idea was the same. To put it bluntly and without delving into deep technical issues, for me personally GNU Guix is better than NixOS because of the Lisp dialect - GNU Guile Schemel. Due to the fact that it is not just a DSL like Nix, but a full-fledged programming language, it becomes many times more flexible and simpler than Nix. Of course, in Nix you can implement this using bash scripts or any other, but it will not be implemented as concisely as the configuration on SCM. There are also more differences between Guix and NixOS, but this is the topic of the next post.

This is my path to GNU/Linux. This post will be further expanded, so wait for updates and you can correct me if I’m wrong about something, write to me using my details.