I don‘t know if this is the right place to ask, but is this an OK build for a first start in selfhosting? Is there anything obvious I could improve? I‘d mainly run Nextcloud, Immich, some Docker containers and smaller web applications and cronjobs.

I know, that was a rhetorical question.




The
nixos-unstablechannel actually does ensure a minimum set of required packages work: Those that would prevent you from booting. The compiling-from-source is because Hydra (the binary cache) only starts building once a package appears innixpkgs-unstable, and if it immediately proceeds intonixos-unstable, or one of its dependencies is different there, that build won’t be finished yet.release-and versionednixos-don’t have that problem, as they have a merge freeze, and are mostly fast-forwarded along unstable.What would be good is a mechanism for Hydra to tell you “I tried to build this derivation, and it failed.” For this, Nix first needs to store build failure, and since store paths are input-addressed by default, you can also skip builds that will certainly still fail.