about summary refs log tree commit diff
path: root/lib/types.nix
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2021-08-02 21:42:45 +0200
committerSilvan Mosberger <contact@infinisil.com>2022-02-22 15:54:44 +0100
commit665344f14839ea286a7aeb329fbf4f44da268ce4 (patch)
treec251e98c95006eaf8162d582b1fbcf4cd57f82db /lib/types.nix
parent67596d3fcf34ed9f8749221d0abb714069d3985b (diff)
lib/types: Introduce types.raw for unprocessed values
Diffstat (limited to 'lib/types.nix')
-rw-r--r--lib/types.nix7
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";