diff --git a/modules/records.nix b/modules/records.nix index fd258f0..088a07e 100644 --- a/modules/records.nix +++ b/modules/records.nix @@ -265,7 +265,7 @@ lib.mapAttrs ${spfText} ''; type = lib.types.unspecified; - apply = x: if x != null then lib.throwIfNot (x == null) spfText else x; + apply = x: lib.throwIfNot (x == null) spfText x; }; srv.common = { description = lib.mdDoc ''