Created
June 5, 2018 18:47
-
-
Save ryantm/4232ce9bc7e02b29eab11118744b40cd 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
{ config, lib, pkgs, ... }: | |
{ | |
options.our.test = { | |
enable = lib.mkEnableOption "test"; | |
opt = lib.mkOption { | |
type = lib.types.attrs; | |
default = {}; | |
}; | |
}; | |
config = lib.mkIf config.our.test.enable | |
# (lib.mkMerge []); # works | |
(lib.mkMerge (map (d: {}) (lib.attrValues config.our.test.opt))); # infinte recursion | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment