refactor(nix): rename lib.nix to meta.nix and add flake.root option

This commit is contained in:
Mohammad Rafiq 2025-07-07 14:39:36 +08:00
parent 74d7ec7640
commit 28d78dce61
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

18
nix/flake-parts/meta.nix Normal file
View file

@ -0,0 +1,18 @@
{ lib, inputs, ... }:
let
inherit (lib.options) mkOption;
inherit (lib.types) path lazyAttrsOf raw;
inherit (inputs.flake-parts.lib) mkSubmoduleOptions;
in
{
options.flake = mkSubmoduleOptions {
lib = mkOption {
type = lazyAttrsOf raw;
default = { };
};
root = mkOption {
type = path;
default = "";
};
};
}