nilla: modularize
This commit is contained in:
parent
c87a851207
commit
b1659b13fe
5 changed files with 50 additions and 32 deletions
13
modules/nilla/builders/custom-load.nix
Normal file
13
modules/nilla/builders/custom-load.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ lib }:
|
||||
{
|
||||
config.builders.custom-load = {
|
||||
settings.type = lib.types.submodule {
|
||||
options.args = lib.options.create {
|
||||
type = lib.types.null;
|
||||
default.value = null;
|
||||
};
|
||||
};
|
||||
settings.default = { };
|
||||
build = pkg: lib.attrs.generate pkg.systems (system: pkg.package { inherit system; });
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue