zfsborg: add BORG_HOST_ID if nics change
This commit is contained in:
parent
563d340013
commit
b204d5532f
|
@ -92,6 +92,9 @@ in {
|
||||||
weekly = 4;
|
weekly = 4;
|
||||||
monthly = 3;
|
monthly = 3;
|
||||||
};
|
};
|
||||||
|
environment.BORG_HOST_ID = let
|
||||||
|
h = config.networking;
|
||||||
|
in "${h.hostName}.${h.domain}@${h.hostId}";
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs (attrs ? patterns) {
|
// lib.optionalAttrs (attrs ? patterns) {
|
||||||
patterns = attrs.patterns;
|
patterns = attrs.patterns;
|
||||||
|
|
Loading…
Reference in New Issue