From 6655812d15aaa0a931d48fba8a9cb4be99225392 Mon Sep 17 00:00:00 2001 From: Jan Kremer Date: Sat, 7 Feb 2026 09:12:53 +0100 Subject: [PATCH] samba: Reenable media and cloud Hopefully restores AppleTV Sharing --- modules/nixos/samba.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/nixos/samba.nix b/modules/nixos/samba.nix index 2a861b6..486b1c4 100644 --- a/modules/nixos/samba.nix +++ b/modules/nixos/samba.nix @@ -9,6 +9,17 @@ global = { "vfs objects" = "catia fruit streams_xattr"; # "fruit:model" = "MacPro7,1@ECOLOR=226,226,224"; + "fruit:model" = "MacSamba"; + }; + + Cloud = { + path = "/mnt/sdb1/cloud"; + writeable = "yes"; + }; + + Media = { + path = "/mnt/sdb1/media"; + writeable = "yes"; }; TimeMachine = { @@ -19,5 +30,16 @@ }; }; + ## Used to advertise the shares to Windows hosts + services.samba-wsdd = { + enable = true; + }; + + services.avahi = { + enable = true; + publish.enable = true; + publish.userServices = true; + }; + users.users.jan.extraGroups = [ "samba" ]; }