nixos/modules: Replace all nested types.either's with types.oneOf's
This commit is contained in:
@@ -7,7 +7,7 @@ let
|
||||
cfg = config.services.davmail;
|
||||
|
||||
configType = with types;
|
||||
either (either (attrsOf configType) str) (either int bool) // {
|
||||
oneOf [ (attrsOf configType) str int bool ] // {
|
||||
description = "davmail config type (str, int, bool or attribute set thereof)";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user