From 2ddd4e151d6d4ac56bb1c93f4b15b22dd2d9d0d5 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Mon, 20 Mar 2023 20:20:33 +0100 Subject: [PATCH] borgmatic: change type of extraConfigOption Switched to `yamlFormat.type` since the output file format is YAML. --- modules/programs/borgmatic.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/programs/borgmatic.nix b/modules/programs/borgmatic.nix index d69803884..a8817c5fc 100644 --- a/modules/programs/borgmatic.nix +++ b/modules/programs/borgmatic.nix @@ -5,6 +5,8 @@ with lib; let cfg = config.programs.borgmatic; + yamlFormat = pkgs.formats.yaml { }; + mkNullableOption = args: lib.mkOption (args // { type = lib.types.nullOr args.type; @@ -20,7 +22,7 @@ let }; extraConfigOption = mkOption { - type = with types; attrsOf (oneOf [ str bool path int (listOf str) ]); + type = yamlFormat.type; default = { }; description = "Extra settings."; };