mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-16 05:18:17 +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
|
./alias.nix
|
||||||
./documentation
|
./documentation
|
||||||
|
./misc/lib.nix
|
||||||
./security/pki
|
./security/pki
|
||||||
./security/sandbox
|
./security/sandbox
|
||||||
./system
|
./system
|
||||||
|
|
Loading…
Add table
Reference in a new issue