nix-config/lib/options.nix

11 lines
269 B
Nix
Raw Normal View History

2021-03-10 19:50:28 +01:00
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
# Create an option which is enabled by default, in contrast to
# `mkEnableOption` ones which are disabled by default.
mkDisableOption =
description: (mkEnableOption description) // { default = true; };
}