about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRaghav Sood <r@raghavsood.com>2024-05-15 23:09:28 +0800
committerGitHub <noreply@github.com>2024-05-15 23:09:28 +0800
commitec2f5e1cb9f8ceda3529e03807eec41fbeabace3 (patch)
tree20a5317849035a0c8099539979609fc93d580dd2 /nixos
parenta784860836f66a782bdd263d43b5b75241954e41 (diff)
parentaa93972d0b595dff3b0bd66821e5c45c076a6eb4 (diff)
Merge pull request #309615 from mkienitz/fix/vsftpd-assertion
Fix/vsftpd assertion
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/vsftpd.nix2
1 files changed, 1 insertions, 1 deletions
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.";
       }];