1
0
Fork 0
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:
Chris Montgomery 2022-01-23 12:42:09 -05:00
parent bcdb6022b3
commit 9c645f5c61
No known key found for this signature in database
GPG key ID: A6BA9BA2FDA7C997
2 changed files with 16 additions and 0 deletions

15
modules/misc/lib.nix Normal file
View 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.
'';
};
};
}

View file

@ -1,6 +1,7 @@
[
./alias.nix
./documentation
./misc/lib.nix
./security/pki
./security/sandbox
./system