mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 13:39:46 +01: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
|
let
|
||||||
cfg = config.programs.borgmatic;
|
cfg = config.programs.borgmatic;
|
||||||
|
|
||||||
|
yamlFormat = pkgs.formats.yaml { };
|
||||||
|
|
||||||
mkNullableOption = args:
|
mkNullableOption = args:
|
||||||
lib.mkOption (args // {
|
lib.mkOption (args // {
|
||||||
type = lib.types.nullOr args.type;
|
type = lib.types.nullOr args.type;
|
||||||
|
@ -20,7 +22,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
extraConfigOption = mkOption {
|
extraConfigOption = mkOption {
|
||||||
type = with types; attrsOf (oneOf [ str bool path int (listOf str) ]);
|
type = yamlFormat.type;
|
||||||
default = { };
|
default = { };
|
||||||
description = "Extra settings.";
|
description = "Extra settings.";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue