Skip to content

Commit

Permalink
services.mysqlBackup: nixfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Jan 12, 2025
1 parent 233db85 commit 917be2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nixos/modules/services/backup/mysql-backup.nix
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ in
name: algo: "- For ${name}: ${toString algo.minLevel}-${toString algo.maxLevel}"
) compressionAlgs
)}
:::{.note}
If compression level is also specified in gzipOptions, the gzipOptions value will be overwritten
:::
Expand Down Expand Up @@ -148,7 +148,9 @@ in
# assert config to be correct
assertions = [
{
assertion = cfg.compressionLevel == null || selectedAlg.minLevel <= cfg.compressionLevel && cfg.compressionLevel <= selectedAlg.maxLevel;
assertion =
cfg.compressionLevel == null
|| selectedAlg.minLevel <= cfg.compressionLevel && cfg.compressionLevel <= selectedAlg.maxLevel;
message = "${cfg.compressionAlg} compression level must be between ${toString selectedAlg.minLevel} and ${toString selectedAlg.maxLevel}";
}
];
Expand Down

0 comments on commit 917be2f

Please sign in to comment.