1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 05:29:46 +01:00

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

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