zfsborg: add BORG_HOST_ID if nics change

This commit is contained in:
Motiejus Jakštys 2023-09-12 11:30:08 +03:00
parent 563d340013
commit b204d5532f
1 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,9 @@ in {
weekly = 4;
monthly = 3;
};
environment.BORG_HOST_ID = let
h = config.networking;
in "${h.hostName}.${h.domain}@${h.hostId}";
}
// lib.optionalAttrs (attrs ? patterns) {
patterns = attrs.patterns;