nix-conf/lib/module/default.nix

17 lines
311 B
Nix
Raw Normal View History

2023-02-23 20:34:35 +01:00
{ 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; };
}