• DarkSirrush@piefed.ca
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    7 hours ago

    Every time i see a comment about NixOS it makes me even more wary about trying it.

    Everyone jokes about Arch being the ‘from the ground up’ OS, but Nix feels like it embodies those memes.

    • urushitan 漆たん@kakera.kintsugi.moe
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      6 hours ago

      Yeah nixos is a lot of learning and a lot of writing and tweaking .nix files.

      That being said, once you have a setup you like that works it means installing on a new machine is mostly just running a couple of install commands and all your apps/settings/environment secrets/anything you’ve declared in your nix config (like dotfiles for apps unsupported by home-manager) come with you and are version controlled on the system and in code.

      But it doesn’t work like a normal Linux system, there is no /bin/bash among thousands of other things, so it’s for a niche audience where it’s either a server with infra as code or a desktop that requires a lot of work to maintain but has some incredible advantages (like generations)

    • RustyNova@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      6 hours ago

      Yeah it was my pipeline. But be wary, this is a hard path to take. The os is great. The package manager is great. The nix config language? Hahaha welcome to hell! It takes at least 6 months to get comfortable with it. And still, sometimes you can still come across a config file that will be totally alien to you. And when you need something not in the repos… time to learn how to package stuff!

      It’s not to discourage you, but be warned. It takes time. I had 5 attempts at it before it became my daily driver.

      Keep a working distro on the side. And when you start your computer, think about what you want to do. If you think you can do everything you want today in NixOs, boot it. If you have a lot missing/do not feel like configuring it, boot the other distro. Just start small. Do some little challenges like turning your config into a flake, create a nix os module, split your configuration in smaller more maintainable files, create a systemd service, wrangle with that damn home manager that keeps making everything so confusing.

      And arch is actually the one from scratch. NixOs is intimately linked to systemd. Nix also requires some base dependencies like git and curl, so it’s not from scratch. However you could argue that NixOs is a “make a distro from the kitchen utensils and a recipe”.