Created
August 11, 2016 18:31
-
-
Save LnL7/0e89157afbf7d89372a9b83bbd9f2126 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
{ pkgs ? import <nixpkgs> {} }: | |
with pkgs.lib; | |
evalModules { | |
modules = [ | |
({ config, ... }: | |
{ | |
options = { | |
foo = mkOption { | |
default = [ ]; | |
}; | |
group = mkOption { | |
default = { }; | |
options = { | |
tags = mkOption { | |
default = [ ]; | |
}; | |
}; | |
}; | |
}; | |
config = { | |
foo = [ "bar" ]; | |
group.foo.tags = [ "bar" ]; | |
}; | |
}) | |
{ | |
config = { | |
foo = [ "baz" ]; | |
group.foo.tags = [ "baz" ]; | |
}; | |
} | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment