mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
Deduplicate unprotected service messages via mkUnprotectedMessage
This commit is contained in:
parent
464b6a7850
commit
66d5263aca
4 changed files with 6 additions and 7 deletions
|
|
@ -43,17 +43,13 @@ in
|
|||
assertion = config.custom.services.tailscale.enable;
|
||||
message = "Syncthing requires tailscale.";
|
||||
}
|
||||
{
|
||||
assertion = cfg.doBackups -> cfg.isServer;
|
||||
message = "Syncthing backups should only be performed on a server.";
|
||||
}
|
||||
{
|
||||
assertion = cfg.isServer -> (cfg.gui.domain != null);
|
||||
message = "Running syncthing on a server requires `gui.domain` to be set.";
|
||||
}
|
||||
{
|
||||
assertion = (cfg.gui.domain != null) -> (lib'.isTailscaleDomain cfg.gui.domain);
|
||||
message = "The syncthing gui should only be exposed on a private network as it isn't yet configured with access controll.";
|
||||
message = lib'.mkUnprotectedMessage "Syncthing-GUI";
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue