refactor(lib): add lib output to flake

This is needed so we can use subattributes of flake.lib
This commit is contained in:
Mohammad Rafiq 2025-07-07 14:03:38 +08:00
parent db23edd468
commit a83523bbf1
No known key found for this signature in database
6 changed files with 33 additions and 4 deletions

14
nix/flake-parts/lib.nix Normal file
View file

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