From aa93972d0b595dff3b0bd66821e5c45c076a6eb4 Mon Sep 17 00:00:00 2001 From: Maximilian Kienitz Date: Thu, 2 May 2024 23:24:52 +0200 Subject: nixos/vsftpd: fix invalid implication in assertions --- nixos/modules/services/networking/vsftpd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules') diff --git a/nixos/modules/services/networking/vsftpd.nix b/nixos/modules/services/networking/vsftpd.nix index 25f950600b91c..07b93e92a7509 100644 --- a/nixos/modules/services/networking/vsftpd.nix +++ b/nixos/modules/services/networking/vsftpd.nix @@ -278,7 +278,7 @@ in } { assertion = (cfg.enableVirtualUsers -> cfg.userDbPath != null) - && (cfg.enableVirtualUsers -> cfg.localUsers != null); + && (cfg.enableVirtualUsers -> cfg.localUsers); message = "vsftpd: If enableVirtualUsers is true, you need to setup both the userDbPath and localUsers options."; }]; -- cgit 1.4.1