-
-
Save r-vdp/b18a8cc0e1d8180e1f8887af6f500993 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ lib, ... }: | |
with lib; | |
let | |
subOpts = { name, ... }: { | |
options = { | |
name = mkOption { | |
type = types.int; | |
}; | |
}; | |
config = { | |
name = mkDefault name; | |
}; | |
}; | |
in { | |
options = { | |
opts = mkOption { | |
type = with types; attrsOf (submodule subOpts); | |
}; | |
}; | |
config = { | |
opts = { | |
test = { | |
name = "foo"; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment