pass BORG_HOST_ID correctly
This commit is contained in:
parent
b204d5532f
commit
49d92971c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user