mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
feat: add top-level lib
option
For parity with NixOS: https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/misc/lib.nix
This commit is contained in:
parent
bcdb6022b3
commit
9c645f5c61
2 changed files with 16 additions and 0 deletions
15
modules/misc/lib.nix
Normal file
15
modules/misc/lib.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
options = {
|
||||
lib = lib.mkOption {
|
||||
default = { };
|
||||
|
||||
type = lib.types.attrsOf lib.types.attrs;
|
||||
|
||||
description = ''
|
||||
This option allows modules to define helper functions, constants, etc.
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
[
|
||||
./alias.nix
|
||||
./documentation
|
||||
./misc/lib.nix
|
||||
./security/pki
|
||||
./security/sandbox
|
||||
./system
|
||||
|
|
Loading…
Reference in a new issue