nixos/scrutiny: enable collector by default if scrutiny is enabled (#329069)

This commit is contained in:
PopeRigby 2024-07-21 23:38:45 -07:00 committed by GitHub
parent 19bc619c1c
commit a5eaa1df10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -110,7 +110,10 @@ in
};
collector = {
enable = mkEnableOption "the Scrutiny metrics collector";
enable = mkEnableOption "the Scrutiny metrics collector" // {
default = cfg.enable;
defaultText = lib.literalExpression "config.services.scrutiny.enable";
};
package = mkPackageOption pkgs "scrutiny-collector" { };