nixos/haka: fix assert (#358675)

This commit is contained in:
Martin Weinelt 2024-11-24 16:30:35 +01:00 committed by GitHub
commit 6632eed37b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -124,7 +124,7 @@ in
{ assertion = cfg.pcap != cfg.nfqueue; { assertion = cfg.pcap != cfg.nfqueue;
message = "either pcap or nfqueue can be enabled, not both."; message = "either pcap or nfqueue can be enabled, not both.";
} }
{ assertion = cfg.nfqueue -> !dump.enable; { assertion = cfg.nfqueue -> !cfg.dump.enable;
message = "dump can only be used with nfqueue."; message = "dump can only be used with nfqueue.";
} }
{ assertion = cfg.interfaces != []; { assertion = cfg.interfaces != [];