I really dig nixos’ design, and would like to use it for my linux servers too.
I wonder if it’s possible to ask nix to skip installing things that are usually not very useful in a server context, like man pages or i18n files?
I also wonder, does the the concept of suggested and recommended packages in the Debian world exist in nix, where you can limit the optional dependencies to install with?
I searched around, but couldn’t find anything useful.
You can disabled man pages with documentation.man.enable and for 22.11 only C and us.utf8 locales are build by default.
Not really. Some packages have optional flags to disable some features but then you often need to compile them yourself. NixOS modules on the other hand have often options to disable certain parts.
Some packages have optional flags to disable some features but then you often need to compile them yourself.
I don’t mind compiling things myself and I’d prefer compiling things not on the servers themselves. I guess nixos must have a way of installing from custom repo where precompiled packages live. Does there exist some doc that explain how to set up such a repo and how to make nixos use it?
If there’s documentation for those flags outside of nixos-rebuild --help I’ve yet to see it. But this is a very useful feature for small deployments where setting up a third server just to act as a build cache is overkill.