Files
LillyOS/hosts/lillyserver/samba-shares.nix

60 lines
1.1 KiB
Nix

{
services.samba = {
enable = true;
openFirewall = true;
smbd.enable = true;
settings = ''
[global]
workgroup = LILLY
server string = LillyServer Samba
server role = standalone server
log file = /var/log/samba/%m.log
max log size = 50
[LillyNAS]
path = /mnt/lilly-storage/LillyNAS
guest ok = no
comment =
read only = no
shadow:snapdir = .zfs/snapshot
shadow:sort = desc
shadow:format = %Y-%m-%d-%H%M%S
valid users = "@lilly" "lilly"
vfs objects = shadow_copy2
browseable = no
[LillyPhoneSync]
path = /mnt/lilly-storage/LillyPhoneSync
guest ok = no
comment = Phone Data Sync
valid users = "lilly"
read only = no
browseable = no
[PaperlessConsume]
path = /mnt/lilly-storage/PaperlessConsume
guest ok = no
comment =
read only = no
browseable = no
valid users = "lilly" "paperless-consume"
[3D-Printing]
path = /mnt/lilly-storage/3D-Printing
guest ok = no
comment =
valid users = "lilly"
read only = no
browseable = no
[Media]
path = /mnt/lilly-storage/Media
guest ok = no
comment =
valid users = "lilly"
read only = no
browseable = no
'';
};
}