set machine id manually instead of impermenance

This commit is contained in:
mjallen18
2024-11-05 15:34:05 -06:00
parent 7e63334b1a
commit 2743309214
10 changed files with 56 additions and 48 deletions

View File

@@ -38,13 +38,13 @@ in {
hosts deny = 0.0.0.0/0
guest account = nobody
map to guest = bad user
force user = nix-apps
'';
shares = let
make = name: share:
nameValuePair "${name}" {
path = share.sharePath;
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";
"read only" = if share.readOnly then "yes" else "no";
@@ -59,4 +59,5 @@ in {
in mapAttrs' make cfg.shares;
};
};
}
}
# private = if !share.public || share.enableTimeMachine then "yes" else "no";