borgmatic: change type of extraConfigOption

Switched to `yamlFormat.type` since the output file format is YAML.
This commit is contained in:
Damien Cassou 2023-03-20 20:20:33 +01:00 committed by Robert Helgesson
parent 2bf15d3835
commit 2ddd4e151d
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
1 changed files with 3 additions and 1 deletions

View File

@ -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.";
};