pass BORG_HOST_ID correctly

This commit is contained in:
Motiejus Jakštys 2023-09-12 11:41:45 +03:00
parent b204d5532f
commit 49d92971c9

View File

@ -92,15 +92,16 @@ in {
weekly = 4;
monthly = 3;
};
environment.BORG_HOST_ID = let
environment = {
BORG_HOST_ID = let
h = config.networking;
in "${h.hostName}.${h.domain}@${h.hostId}";
} // lib.optionalAttrs (sshKeyPath != null) {
BORG_RSH = ''ssh -i "${config.mj.base.zfsborg.sshKeyPath}"'';
};
}
// lib.optionalAttrs (attrs ? patterns) {
patterns = attrs.patterns;
}
// lib.optionalAttrs (sshKeyPath != null) {
environment.BORG_RSH = ''ssh -i "${config.mj.base.zfsborg.sshKeyPath}"'';
})
)
dirs