1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 08:17:01 +00:00

Merge pull request #429 from montchr/add-toplevel-option-lib

Add top-level `lib` option based on NixOS
This commit is contained in:
Daiderd Jordan 2022-04-25 22:59:34 +02:00 committed by GitHub
commit aba9ce944e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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