Skip to content

How to define 1 level of strict attributes and other level of dynamic attributes as outputs? #186

Answered by yajo
yajo asked this question in Q&A
Discussion options

You must be logged in to vote

Ah yes, indeed! Thank you, you helped me to find the fix. Applying this diff makes it work:

--- flake.old.nix       2023-09-29 10:16:18.359751042 +0100
+++ flake.nix   2023-09-29 10:18:51.129426157 +0100
@@ -21,7 +21,10 @@
                 default = 1;
                 type = lib.types.ints.positive;
               };
-              spec.domains = lib.types.listOf domainType;
+              spec.domains = lib.mkOption {
+                default = [];
+                type = lib.types.listOf domainType;
+              };
             };
           };
 
@@ -44,16 +47,14 @@
 
           tiersType = lib.types.submodule {
             options = {
-              development = tierType;
-

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yajo
Comment options

Answer selected by yajo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants