nixos/modules: Replace all nested types.either's with types.oneOf's

This commit is contained in:
Silvan Mosberger 2019-08-08 23:35:52 +02:00
parent 9a44f44d4c
commit 88bb9fa403
No known key found for this signature in database
GPG key ID: 9424360B4B85C9E7
12 changed files with 13 additions and 13 deletions

View file

@ -226,7 +226,7 @@ in rec {
environment = mkOption {
default = {};
type = with types; attrsOf (nullOr (either str (either path package)));
type = with types; attrsOf (nullOr (oneOf [ str path package ]));
example = { PATH = "/foo/bar/bin"; LANG = "nl_NL.UTF-8"; };
description = "Environment variables passed to the service's processes.";
};