diff --git a/modules/samba/default.nix b/modules/samba/default.nix index f30cbb3..61ccc04 100644 --- a/modules/samba/default.nix +++ b/modules/samba/default.nix @@ -43,7 +43,7 @@ in { make = name: share: nameValuePair "${name}" { path = share.sharePath; - public = if share.enableTimeMachine then false else share.public; + public = if share.enableTimeMachine then "no" else "yes"; private = if !share.public || share.enableTimeMachine then "yes" else "no"; browseable = if share.browseable then "yes" else "no"; writable = "yes"; @@ -52,11 +52,9 @@ in { "create mask" = share.createMask; "directory mask" = share.directoryMask; "fruit:aapl" = if share.enableTimeMachine then "yes" else "no"; - "fruit:time machine" = - if share.enableTimeMachine then "yes" else "no"; + "fruit:time machine" = if share.enableTimeMachine then "yes" else "no"; "vfs objects" = "catia fruit streams_xattr"; "fruit:time machine max size" = share.timeMachineMaxSize; - "force user" = "admin"; }; in mapAttrs' make cfg.shares; };