!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1154 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org184 Servers

Load older messages


SenderMessageTime
1 Dec 2025
@xoredg:matrix.orgxoredI figure I might ask here since there's bound to be (hopefully) more Mac users, has anyone else's time backups stopped working since 25.11? not sure related but the timing is awfully close 23:08:23
@xoredg:matrix.orgxored
        global = {
          interfaces = "lo ${config.xored.ipv6.prefix}:28::${config.xored.hosts.nas.networking.interfaceId}/64 fe80::105f:89ff:fe1f:bc3%thunderbolt0/64";
          "bind interfaces only" = "yes";
          "disable netbios" = "yes";
          "workgroup" = "HOMELAB";
          "server string" = "fs";
          "netbios name" = "fs";
          "security" = "user";
          "guest account" = "nobody";
          "map to guest" = "bad user";
          "acl_xattr:ignore system acls" = "no";
          "acl_xattr:default" = "yes";
          # Enable Windows ACL (acl_xattr) and Mac (catia fruit streams_xattr) support
          "vfs objects" = "acl_xattr catia fruit streams_xattr";
        };
        "tm_share" = {
          "path" = "/tank/backups/tm_share";
          "valid users" = "xored";
          "public" = "no";
          "writeable" = "yes";
          "force user" = "xored";
          "fruit:aapl" = "yes";
          "fruit:time machine" = "yes";
        };
      };
23:09:57
@xoredg:matrix.orgxoredI have tried every fruit option and vfs object combination known to mankind I don't know what else to do, my storage is on zfs but it was working before and I didn't upgrade that23:11:34
@xoredg:matrix.orgxored * I have tried every fruit option and vfs objects combination known to mankind I don't know what else to do, my storage is on zfs but it was working before and I didn't upgrade that 23:11:53
@xoredg:matrix.orgxoredso I'm asking here while I rebuild 25.05 to confirm23:12:50
@reckenrode:matrix.orgRandy EckenrodeI haven’t upgraded my NAS to 25.11 yet, so I don’t know.23:15:22
@xoredg:matrix.orgxoredScreenshot 2025-12-01 at 3.16.21 PM.png
Download Screenshot 2025-12-01 at 3.16.21 PM.png
23:16:51
@xoredg:matrix.orgxoredI hate it here23:16:55
@xoredg:matrix.orgxored25.05 works23:16:57
@xoredg:matrix.orgxoredso what in the world they changed on samba23:17:11
@samasaur:matrix.orgsamasaurI literally just got it set up for me23:18:34
@samasaur:matrix.orgsamasaurTime Machine on samba on zfs23:19:14
@samasaur:matrix.orgsamasauri did it on unstable though so i probably would have hit the error you're seeing23:19:38
@samasaur:matrix.orgsamasaurwill check when i get home23:19:54
@xoredg:matrix.orgxoreddid it work for you on unstable though?23:22:36
@samasaur:matrix.orgsamasauryeah23:22:43
@xoredg:matrix.orgxoredhmmm unstable has the same version that 25.11 right now23:23:16
@samasaur:matrix.orgsamasaurexactly yeah23:23:23
@xoredg:matrix.orgxoredso is something I messed up, what else is new23:23:25
@samasaur:matrix.orgsamasaur mine doesn't show with the Time Machine disk icon, though... :(
i guess "functional" is more important but still
23:23:45
@samasaur:matrix.orgsamasauri did get it to show up as an Xserve when you connect via finder23:24:04
@xoredg:matrix.orgxoreddo you see anything on my config you don't have23:24:19
@xoredg:matrix.orgxoredI think the "hardening" they did in 4.20 is what breaks it23:24:47
@xoredg:matrix.orgxored* I think the "hardening" they did in 4.21 is what breaks it23:25:03
@samasaur:matrix.orgsamasaurwhen was they23:25:19
@samasaur:matrix.orgsamasaur* when was that23:25:23
@xoredg:matrix.orgxoredI have no idea, just looking at the samba releases since 25.0523:25:39
@xoredg:matrix.orgxoredthere are Mac bug fixes across renaming that could affect this too (the sparse bundle stuff timemachine does) but I reckon if its working for ppl is my valid users or force users or something similar23:26:19
@samasaur:matrix.orgsamasaur
  fileSystems."/timemachine" = {
    device = "data/timemachine";
    fsType = "zfs";
  };

  users.groups.timemachine.members = [ "sam" ];
  
  services.samba = {
    enable = true;
    smbd.enable = true;
    nmbd.enable = false;
    winbindd.enable = false;
    usershares.enable = false;
    nsswins = false;

    settings = {
      global = {
        "vfs objects" = "catia fruit streams_xattr";

        # time machine/apple compatibility options
        "fruit:aapl" = true;
        "fruit:nfs_aces" = false;
        "fruit:copyfile" = false;
        # Run `plutil -p /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist` and grep for RackMac3,1
        # Any model like that seems to be valid?
        # Icons in `/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/`
        "fruit:model" = "RackMac3,1";

        # assorted other samba options
        "panic action" = '' ${lib.getExe pkgs.curl} cliff/send -d \"title=Samba crashed\" '';
      };
      timemachine = {
        # time machine/apple compat
        "fruit:resource" = "xattr";
        "fruit:time machine" = true;
        # "fruit:time machine max size" = "10T"; # impacts how many backups are kept (logic on time machine side)
        "fruit:metadata" = "netatalk";
        "fruit:encoding" = "native";

        # samba options
        path = "/timemachine";
        preexec = '' ${lib.getExe pkgs.curl} cliff/send -d \"title=Samba connection initiated\" -d \"body=%u connected to %S from %m (%I)\" '';
        writeable = true;
        "valid users" = "sam";
      };
    };
  };

  services.avahi = {
    enable = true;
    extraServiceFiles.samba = ''
      <?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=RackMac3,1</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>
    '';
  };
23:26:55
@samasaur:matrix.orgsamasaurthis is what i have23:27:11

Show newer messages


Back to Room ListRoom Version: 6