default swarm.attic domain and cache to the swarm's own cache on every host
This commit is contained in:
parent
61292e865e
commit
606817a994
1 changed files with 80 additions and 57 deletions
|
|
@ -14,9 +14,8 @@
|
|||
# and attic's own tokens are the authentication. Storage is local disk under the
|
||||
# container's state.
|
||||
#
|
||||
# The two `swarm.attic` options every host reads (./swarm-attic-options.nix) get
|
||||
# their values from here, at `mkDefault`: naming them yourself wins, and with
|
||||
# the switch off nothing is set.
|
||||
# The two `swarm.attic` options every host reads (./swarm-attic-options.nix)
|
||||
# default to this cache's names on every host, whether or not it runs here.
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
|
|
@ -168,11 +167,6 @@ in
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.hyperhive.swarm.attic = {
|
||||
domain = lib.mkDefault atticCfg.ownDomain;
|
||||
cache = lib.mkDefault "swarm";
|
||||
};
|
||||
|
||||
assertions = [
|
||||
{
|
||||
assertion = haveClientIdentity;
|
||||
|
|
|
|||
Loading…
Reference in a new issue