Assert todos instead of warn

This commit is contained in:
SebastianStork 2025-10-21 20:30:49 +02:00
parent 939030d505
commit 6edbfa0b42
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
8 changed files with 38 additions and 15 deletions

View file

@ -33,10 +33,12 @@ in
assertion = lib'.isTailscaleDomain cfg.domain;
message = "Filebrowser isn't yet configured with access controll.";
}
{
assertion = !lib.pathExists "${modulesPath}/services/web-apps/filebrowser.nix";
message = "TODO: Use filebrowser module from stable nixpkgs";
}
];
warnings = lib.optional (lib.pathExists "${modulesPath}/services/web-apps/filebrowser.nix") "TODO: Use filebrowser module from stable nixpkgs";
meta = {
domains.list = [ cfg.domain ];
ports.tcp.list = [ cfg.port ];