summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixos/modules/services/backup/syncoid.nix8
1 files changed, 2 insertions, 6 deletions
diff --git a/nixos/modules/services/backup/syncoid.nix b/nixos/modules/services/backup/syncoid.nix
index 1a1df38617b5..f77010829575 100644
--- a/nixos/modules/services/backup/syncoid.nix
+++ b/nixos/modules/services/backup/syncoid.nix
@@ -123,9 +123,7 @@ in
};
sshKey = mkOption {
- type = types.nullOr types.path;
- # Prevent key from being copied to store
- apply = mapNullable toString;
+ type = with types; nullOr (coercedTo path toString str);
default = null;
description = lib.mdDoc ''
SSH private key file to use to login to the remote system. Can be
@@ -205,9 +203,7 @@ in
recursive = mkEnableOption (lib.mdDoc ''the transfer of child datasets'');
sshKey = mkOption {
- type = types.nullOr types.path;
- # Prevent key from being copied to store
- apply = mapNullable toString;
+ type = with types; nullOr (coercedTo path toString str);
description = lib.mdDoc ''
SSH private key file to use to login to the remote system.
Defaults to {option}`services.syncoid.sshKey` option.