Elektrine lite

← Feed

@ivn@tarte.nuage-libre.fr

2026-03-31 01:50 UTC

NixOS so I can keep my config in git. I have a single nix config for all my machines (desktop, laptop and server) so I can share configuration between them. I use it to configure both my system and my user config, my dotfiles, with home-manager. Even my neovim config is in nix thanks to nixvim. I don't think I could go back now. It can be a bit of a pain from time to time and the learning curve is steep but it has so many advantages. Being able to rollback between config versions (called generations), having a consistent config between my machines, having it all in version control… The repo have so many packages and when there is a module it's really easy to add a service. Writing new packages (derivations) and modules is also not that hard. It can be as simple as calling nix-init. Had my main ssd fail on me a few month back and it was very simple to just replay the config and just get everything working as before. I only had to do the partitioning by hand (it can be done by nix but I've not gotten around to it yet). That's why I only backup data and home partitions, not system partitions.

Replies (2)

  • @sudoer777@lemmy.ml 2026-03-31 03:10

    I was messing with the NixOS system config in weird ways and accidentally bricked it a few times, but I just booted into a previous configuration and fixed it. Whereas with Arch you would be fucked and have to pull out a rescue disk.

    Open ##1321151

  • I've had a similiar experience to yours but with Guix.

    Open ##1321152