mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 22:50:39 +00:00
borgmatic: change type of extraConfigOption
Switched to `yamlFormat.type` since the output file format is YAML.
This commit is contained in:
parent
2bf15d3835
commit
2ddd4e151d
1 changed files with 3 additions and 1 deletions
|
@ -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.";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue