I am working on setting up a home server but I want it to be reproducible if I need to make large changes, switch out hardware, or restore from a failure. What do you use to handle this?

you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 10 months ago (2 children)

Out of curiosity: Are you running nix-ops with nix-secrets or how did you cover orchestration & credentials?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 10 months ago

    I use flakes and all hosts are configured from a single flake, where each host has its own configuration. I have some custom modules and even custom package in the same flake. I also use home manager. I have 4 hosts managed in total: home server, laptop, gaming PC, and a cloud server. All hosts were provisioned using nixos-anywhere + disko, except for the first one which was installed manually. For secrets I use sops-nix, encrypted secrets are stored in the same flake/repo.

  • source
  • parent