-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
92 changed files
with
2,163 additions
and
12,660 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ lib, ... }: | ||
let | ||
inherit (lib) types mkOption; | ||
in | ||
{ | ||
imports = [ | ||
# Module A | ||
( | ||
{ ... }: | ||
{ | ||
options.mergedName = mkOption { | ||
default = { }; | ||
type = types.attrsWith { | ||
placeholder = "id"; # <- This is beeing tested | ||
elemType = types.submodule { | ||
options.nested = mkOption { | ||
type = types.int; | ||
default = 1; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} | ||
) | ||
# Module B | ||
( | ||
{ ... }: | ||
{ | ||
# defines the default placeholder "name" | ||
# type merging should resolve to "id" | ||
options.mergedName = mkOption { | ||
type = types.attrsOf (types.submodule { }); | ||
}; | ||
} | ||
) | ||
|
||
# Output | ||
( | ||
{ | ||
options, | ||
... | ||
}: | ||
{ | ||
options.result = mkOption { | ||
default = lib.concatStringsSep "." (options.mergedName.type.getSubOptions options.mergedName.loc) | ||
.nested.loc; | ||
}; | ||
} | ||
) | ||
]; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ lib, ... }: | ||
let | ||
inherit (lib) types mkOption; | ||
in | ||
{ | ||
imports = [ | ||
# Module A | ||
( | ||
{ ... }: | ||
{ | ||
options.mergedName = mkOption { | ||
default = { }; | ||
type = types.attrsWith { | ||
placeholder = "id"; # <- this is beeing tested | ||
elemType = types.submodule { | ||
options.nested = mkOption { | ||
type = types.int; | ||
default = 1; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} | ||
) | ||
# Module B | ||
( | ||
{ ... }: | ||
{ | ||
options.mergedName = mkOption { | ||
type = types.attrsWith { | ||
placeholder = "other"; # <- define placeholder = "other" (conflict) | ||
elemType = types.submodule { }; | ||
}; | ||
}; | ||
} | ||
) | ||
]; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ lib, ... }: | ||
{ | ||
imports = [ | ||
{ | ||
options.sm = lib.mkOption { | ||
type = lib.types.strMatching "\(.*\)"; | ||
}; | ||
} | ||
{ | ||
options.sm = lib.mkOption { | ||
type = lib.types.strMatching "\(.*\)"; | ||
}; | ||
} | ||
]; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7335,6 +7335,17 @@ | |
githubId = 1633361; | ||
name = "Iztok Fister Jr."; | ||
}; | ||
FirelightFlagboy = { | ||
email = "[email protected]"; | ||
github = "FirelightFlagboy"; | ||
githubId = 30697622; | ||
name = "Firelight Flagboy"; | ||
keys = [ | ||
{ | ||
fingerprint = "D6E2 4BD5 680C 609D D146 99B4 4304 CE0B A5E8 67D1"; | ||
} | ||
]; | ||
}; | ||
FireyFly = { | ||
email = "[email protected]"; | ||
github = "FireyFly"; | ||
|
@@ -10263,7 +10274,7 @@ | |
name = "jdev082"; | ||
}; | ||
jdreaver = { | ||
email = "johndreaver@gmail.com"; | ||
email = "me@davidreaver.com"; | ||
github = "jdreaver"; | ||
githubId = 1253071; | ||
name = "David Reaver"; | ||
|
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
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
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
Oops, something went wrong.