Skip to content

Instantly share code, notes, and snippets.

@LnL7
Created August 11, 2016 18:31
Show Gist options
  • Save LnL7/0e89157afbf7d89372a9b83bbd9f2126 to your computer and use it in GitHub Desktop.
Save LnL7/0e89157afbf7d89372a9b83bbd9f2126 to your computer and use it in GitHub Desktop.
{ 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