infrastructure/modules/system/ci.nix
2024-05-21 14:29:08 -07:00

19 lines
316 B
Nix

{
config,
lib,
...
}: let
inherit (lib.options) mkOption mkEnableOption;
in {
options.ci = with lib.types; {
enable =
mkEnableOption "build via CI"
// {
default = config.type == "NixOS";
};
allowFailure = mkOption {
type = bool;
default = false;
};
};
}