nix-files/modules/warnings.nix

16 lines
379 B
Nix
Raw Normal View History

2024-02-20 11:19:12 +00:00
{ config, lib, ... }:
{
options = with lib; {
sane.silencedWarnings = mkOption {
2024-02-21 00:25:44 +00:00
type = types.listOf types.str;
2024-02-20 11:19:12 +00:00
default = [];
description = ''
list of `config.warnings` values you want to ignore, verbatim.
'';
};
warnings = mkOption {
apply = builtins.filter (w: !(builtins.elem w config.sane.silencedWarnings));
};
};
}