test time machine service addition

This commit is contained in:
2026-06-13 03:22:25 -05:00
parent 09fd696b1d
commit fa15da2778
2 changed files with 29 additions and 4 deletions
+1 -4
View File
@@ -86,10 +86,7 @@ in {
</service>
<service>
<type>_adisk._tcp</type>
<!--
change tm_share to share name, if you changed it.
-->
<txt-record>dk0=adVN=tm_share,adVF=0x82</txt-record>
<txt-record>dk0=adVN=timemachine,adVF=0x82</txt-record>
<txt-record>sys=waMa=0,adVF=0x100</txt-record>
</service>
</service-group>
@@ -23,6 +23,7 @@ let
"public" = "no";
"writeable" = "yes";
"force user" = "blake";
# time machine specifc config
"fruit:aapl" = "yes";
"fruit:time machine" = "yes";
"vfs objects" = "catia fruit streams_xattr";
@@ -55,5 +56,32 @@ in {
enable = true;
settings = smb_shares;
};
# ensure time machine can discover the share without `tmutil`
services.avahi = {
extraServiceFiles = {
timemachine = ''
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_smb._tcp</type>
<port>445</port>
</service>
<service>
<type>_device-info._tcp</type>
<port>0</port>
<txt-record>model=TimeCapsule8,119</txt-record>
</service>
<service>
<type>_adisk._tcp</type>
<txt-record>dk0=adVN=timemachine,adVF=0x82</txt-record>
<txt-record>sys=waMa=0,adVF=0x100</txt-record>
</service>
</service-group>
'';
};
};
};
}