scrutiny, searxng: Add unprotected assertion

This commit is contained in:
SebastianStork 2026-03-18 14:48:39 +01:00
parent 7fd21d8cde
commit 25e81ccc80
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
2 changed files with 22 additions and 2 deletions

View file

@ -1,4 +1,9 @@
{ config, lib, ... }:
{
config,
self,
lib,
...
}:
let
cfg = config.custom.web-services.scrutiny;
in
@ -16,6 +21,11 @@ in
};
config = lib.mkIf cfg.enable {
assertions = lib.singleton {
assertion = self.lib.isPrivateDomain cfg.domain;
message = self.lib.mkUnprotectedMessage "Scrutiny";
};
services.scrutiny = {
enable = true;
settings.web.listen = {

View file

@ -1,4 +1,9 @@
{ config, lib, ... }:
{
config,
self,
lib,
...
}:
let
cfg = config.custom.web-services.searxng;
in
@ -16,6 +21,11 @@ in
};
config = lib.mkIf cfg.enable {
assertions = lib.singleton {
assertion = self.lib.isPrivateDomain cfg.domain;
message = self.lib.mkUnprotectedMessage "SearXNG";
};
services.searx = {
enable = true;
settings = {