diff options
author | Silvan Mosberger <contact@infinisil.com> | 2021-08-02 21:42:45 +0200 |
---|---|---|
committer | Silvan Mosberger <contact@infinisil.com> | 2022-02-22 15:54:44 +0100 |
commit | 665344f14839ea286a7aeb329fbf4f44da268ce4 (patch) | |
tree | c251e98c95006eaf8162d582b1fbcf4cd57f82db /lib/types.nix | |
parent | 67596d3fcf34ed9f8749221d0abb714069d3985b (diff) |
lib/types: Introduce types.raw for unprocessed values
Diffstat (limited to 'lib/types.nix')
-rw-r--r-- | lib/types.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/types.nix b/lib/types.nix index 3fa9d881a6502..c47a35cd0d674 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -162,6 +162,13 @@ rec { # nixos/doc/manual/development/option-types.xml! types = rec { + raw = mkOptionType rec { + name = "raw"; + description = "raw value"; + check = value: true; + merge = mergeOneOption; + }; + anything = mkOptionType { name = "anything"; description = "anything"; |