samba some progress

This commit is contained in:
2023-09-12 13:31:46 +03:00
parent dea3eef575
commit 2b5b9bc57f
5 changed files with 74 additions and 26 deletions

View File

@@ -92,13 +92,15 @@ in {
weekly = 4;
monthly = 3;
};
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}"'';
};
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;