Eufalconimorph,

Daily use isn’t difficult IME. NixOS is just so nice once it’s working. It’s ridiculously easy to understand your system & how it’s set up (it’s all in your config). Nothing changes between updates that you don’t know about. You never have to merge configurations from upstream. It’s trivial to try something new without changing your system overall. Rollbacks are amazing. It’s easy to configure a new machine, to keep multiple machines synchronized (same packages & versions & even users & dotfiles). I have automatic updates enabled so I get a new system when I reboot, and if I don’t like an update I can just revert seamlessly. It basically works like an appliance: I don’t have to think about the way it’s set up unless I disagree with the defaults, and in that case I can change them. You can always override things, even down to applying patches to source code (though obviously that then requires re-compiling). It’s like if you took the stability of Debian, the up-to-date nature and huge repo of Arch & the AUR, and the configurability of Gentoo and mashed them all together.

The hard bits are packaging new programs and making “modules”. You can pretty much always configure a program by just writing the config file options in a Nix string block, e.g. I’ve got the following in my home-manager config for my ~/.xkbrc:

<pre style="background-color:#ffffff;">
<span style="color:#323232;">  home.file.".config/kxkbrc" = {
</span><span style="color:#323232;">    text = ''
</span><span style="color:#323232;">      [$Version]
</span><span style="color:#323232;">      update_info=kxkb_variants.upd:split-variants
</span><span style="color:#323232;">
</span><span style="color:#323232;">      [Layout]
</span><span style="color:#323232;">      DisplayNames=
</span><span style="color:#323232;">      LayoutList=us
</span><span style="color:#323232;">      LayoutLoopCount=-1
</span><span style="color:#323232;">      Model=pc86
</span><span style="color:#323232;">      Options=terminate:ctrl_alt_bksp,compose:rctrl
</span><span style="color:#323232;">      ResetOldOptions=true
</span><span style="color:#323232;">      SwitchMode=Global
</span><span style="color:#323232;">      Use=true
</span><span style="color:#323232;">      VariantList=colemak
</span><span style="color:#323232;">    '';
</span><span style="color:#323232;">  };
</span>

Modules would let that be a Nix expression, e.g. looking like

<pre style="background-color:#ffffff;">
<span style="color:#323232;">programs.xkeyboard = {
</span><span style="color:#323232;">  layout = "us";
</span><span style="color:#323232;">  variant = "colemak";
</span><span style="color:#323232;">  model = "pc86";
</span><span style="color:#323232;">  options = {
</span><span style="color:#323232;">    terminate = "ctrl_alt_bksp";
</span><span style="color:#323232;">    compose = "rctrl";
</span><span style="color:#323232;">  };
</span><span style="color:#323232;">  resetOldOptions = true;
</span><span style="color:#323232;">};
</span>

but that requires writing an expression in Nix that converts the Nix syntax into whatever syntax the config file needs to be. That means learning a lot more Nix. Packaging programs also requires learning more Nix, and particularly how Nixpkgs builders work.

That said, the documentation is shitty, the error messages are shitty, Flakes are massively easier to work with but still “experimental” and lots of the docs & examples online are for pre-flakes, while nixpkgs is enormous it doesn’t have everything, and IDE support for Nix shell environments is lacking (have to use VS Code or a terminal-based editor like nvim).

Nix is sort of like democracy. Democracy is the worst form of government, except for all the others. Nix is the worst way to manage an OS, except for all the others. It’s shitty, but it’s shitty in different ways and those mostly end up making day-to-day operations easier.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • Ask_kbincafe
  • SuperSentai
  • feritale
  • KamenRider
  • All magazines