refactor(nix): rename lib.nix to meta.nix and add flake.root option
This commit is contained in:
parent
0c2b6b57d9
commit
da6fa1b9df
2 changed files with 6 additions and 1 deletions
|
@ -56,6 +56,7 @@
|
||||||
(inputs.import-tree ./nix)
|
(inputs.import-tree ./nix)
|
||||||
// {
|
// {
|
||||||
systems = import inputs.systems;
|
systems = import inputs.systems;
|
||||||
|
flake.root = ./.;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib, inputs, ... }:
|
{ lib, inputs, ... }:
|
||||||
let
|
let
|
||||||
inherit (lib.options) mkOption;
|
inherit (lib.options) mkOption;
|
||||||
inherit (lib.types) lazyAttrsOf raw;
|
inherit (lib.types) path lazyAttrsOf raw;
|
||||||
inherit (inputs.flake-parts.lib) mkSubmoduleOptions;
|
inherit (inputs.flake-parts.lib) mkSubmoduleOptions;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -10,5 +10,9 @@ in
|
||||||
type = lazyAttrsOf raw;
|
type = lazyAttrsOf raw;
|
||||||
default = { };
|
default = { };
|
||||||
};
|
};
|
||||||
|
root = mkOption {
|
||||||
|
type = path;
|
||||||
|
default = "";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue