docs: improve docs for groups

This commit is contained in:
DavHau 2023-11-07 16:29:04 +07:00
parent 3b42e5a8e4
commit 9f507c9341
2 changed files with 8 additions and 2 deletions

View File

@ -10,6 +10,7 @@ in {
spagoYamlFile = l.mkOption { spagoYamlFile = l.mkOption {
type = t.path; type = t.path;
default = "${config.mkDerivation.src}/spago.yaml"; default = "${config.mkDerivation.src}/spago.yaml";
defaultText = "\${config.mkDerivation.src}/spago.yaml";
}; };
sources = l.mkOption { sources = l.mkOption {

View File

@ -27,9 +27,13 @@ in {
overrideAll = lib.mkOption { overrideAll = lib.mkOption {
type = t.deferredModule; type = t.deferredModule;
description = '' description = ''
Common configuration for all packages in all groups Common overrides for all packages.
Gets applied on all groups.
''; '';
default = {}; default = {};
example = {
mkDerivation.doCheck = false;
};
}; };
overrides = lib.mkOption { overrides = lib.mkOption {
type = t.lazyAttrsOf (t.deferredModuleWith { type = t.lazyAttrsOf (t.deferredModuleWith {
@ -38,7 +42,8 @@ in {
]; ];
}); });
description = '' description = ''
Holds overrides for all packages in all groups Overrides for specific package names.
Gets applied on all groups.
''; '';
default = {}; default = {};
example = { example = {