feat(fs): add zfs replication custom ssh port
This commit is contained in:
parent
27822059ab
commit
ce8f61acb5
|
@ -50,6 +50,11 @@ in {
|
||||||
type = with types; str;
|
type = with types; str;
|
||||||
description = "remote host as replication destination";
|
description = "remote host as replication destination";
|
||||||
};
|
};
|
||||||
|
port = mkOption {
|
||||||
|
type = with types; port;
|
||||||
|
description = "ssh port of replication target";
|
||||||
|
default = 22;
|
||||||
|
};
|
||||||
datasets = mkOption {
|
datasets = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
default = [ "persist" "service" "storage" ];
|
default = [ "persist" "service" "storage" ];
|
||||||
|
|
|
@ -11,6 +11,7 @@ in mkIf cfg.enable {
|
||||||
commonArgs = [
|
commonArgs = [
|
||||||
"--recursive"
|
"--recursive"
|
||||||
"--mbuffer-size=128M"
|
"--mbuffer-size=128M"
|
||||||
|
"--sshport=${toString cfg.port}"
|
||||||
];
|
];
|
||||||
localSourceAllow = mkOptionDefault [ "mount" ];
|
localSourceAllow = mkOptionDefault [ "mount" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue