Refactor nixos setup by hostname