mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-08 00:26:50 +01:00
17 lines
311 B
Nix
17 lines
311 B
Nix
|
{ lib, ... }:
|
||
|
|
||
|
with lib; rec {
|
||
|
mkOpt = type: default: description:
|
||
|
mkOption { inherit type default description; };
|
||
|
|
||
|
mkOpt' = type: default: mkOpt type default null;
|
||
|
|
||
|
mkBoolOpt = mkOpt types.bool;
|
||
|
|
||
|
mkBoolOpt' = mkOpt' types.bool;
|
||
|
|
||
|
enabled = { enable = true; };
|
||
|
|
||
|
disabled = { enable = false; };
|
||
|
}
|