remove assertions

This commit is contained in:
41666 2024-05-31 01:56:25 -04:00
parent a125ee3d1c
commit 913f75bd0d

View file

@ -326,13 +326,13 @@ in rec {
config = mkIf cfg.enable { config = mkIf cfg.enable {
assertions = [ # assertions = [
{ assertion = length hostUserCfg.subUidRanges > 0 && length hostUserCfg.subGidRanges > 0; # { assertion = length hostUserCfg.subUidRanges > 0 && length hostUserCfg.subGidRanges > 0;
message = '' # message = ''
The host user most have configured subUidRanges & subGidRanges as pihole is running in a rootless podman container. # The host user most have configured subUidRanges & subGidRanges as pihole is running in a rootless podman container.
''; # '';
} # }
]; # ];
warnings = (optional (cfg.hostConfig.enableLingeringForUser == false) '' warnings = (optional (cfg.hostConfig.enableLingeringForUser == false) ''
If lingering is not enabled for the host user which is running the pihole container then he service might be stopped when no user session is active. If lingering is not enabled for the host user which is running the pihole container then he service might be stopped when no user session is active.