This commit is contained in:
mjallen18
2024-03-07 13:13:57 -06:00
parent 1118588099
commit 5c95d77d97

View File

@@ -43,7 +43,7 @@ in {
make = name: share: make = name: share:
nameValuePair "${name}" { nameValuePair "${name}" {
path = share.sharePath; 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"; private = if !share.public || share.enableTimeMachine then "yes" else "no";
browseable = if share.browseable then "yes" else "no"; browseable = if share.browseable then "yes" else "no";
writable = "yes"; writable = "yes";
@@ -52,11 +52,9 @@ in {
"create mask" = share.createMask; "create mask" = share.createMask;
"directory mask" = share.directoryMask; "directory mask" = share.directoryMask;
"fruit:aapl" = if share.enableTimeMachine then "yes" else "no"; "fruit:aapl" = if share.enableTimeMachine then "yes" else "no";
"fruit:time machine" = "fruit:time machine" = if share.enableTimeMachine then "yes" else "no";
if share.enableTimeMachine then "yes" else "no";
"vfs objects" = "catia fruit streams_xattr"; "vfs objects" = "catia fruit streams_xattr";
"fruit:time machine max size" = share.timeMachineMaxSize; "fruit:time machine max size" = share.timeMachineMaxSize;
"force user" = "admin";
}; };
in mapAttrs' make cfg.shares; in mapAttrs' make cfg.shares;
}; };