refactor(lib): add lib output to flake
This is needed so we can use subattributes of flake.lib
This commit is contained in:
parent
1dc3f4bf44
commit
4e74db3938
6 changed files with 33 additions and 4 deletions
15
nix/lib/options.nix
Normal file
15
nix/lib/options.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ lib, ... }:
|
||||
let
|
||||
inherit (lib.options) mkOption;
|
||||
inherit (lib.types) str;
|
||||
in
|
||||
{
|
||||
flake.lib.options = {
|
||||
mkStrOption =
|
||||
default:
|
||||
mkOption {
|
||||
inherit default;
|
||||
type = str;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue