mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
nixos/modules: Replace all nested types.either's with types.oneOf's
This commit is contained in:
parent
9a44f44d4c
commit
88bb9fa403
12 changed files with 13 additions and 13 deletions
|
@ -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.";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue