hosts/youko: enable smb
This commit is contained in:
parent
dcb2f78a9c
commit
994732bf6b
1 changed files with 63 additions and 1 deletions
|
@ -8,7 +8,6 @@
|
|||
boot = {
|
||||
supportedFilesystems = [ "zfs" ];
|
||||
zfs.extraPools = [ "yottapool" ];
|
||||
|
||||
};
|
||||
|
||||
services.zfs = {
|
||||
|
@ -26,4 +25,67 @@
|
|||
ZED_SCRUB_AFTER_RESILVER = true;
|
||||
};
|
||||
};
|
||||
|
||||
services.samba-wsdd = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
# TODO: Clean up. Potentially make it a separate module
|
||||
services.avahi = {
|
||||
publish.enable = true;
|
||||
publish.userServices = true;
|
||||
nssmdns4 = true;
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
extraServiceFiles = {
|
||||
timemachine = ''
|
||||
<?xml version="1.0" standalone='no'?>
|
||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
||||
<service-group>
|
||||
<name replace-wildcards="yes">%h</name>
|
||||
<service>
|
||||
<type>_smb._tcp</type>
|
||||
<port>445</port>
|
||||
</service>
|
||||
<service>
|
||||
<type>_device-info._tcp</type>
|
||||
<port>0</port>
|
||||
<txt-record>model=TimeCapsule8,119</txt-record>
|
||||
</service>
|
||||
<service>
|
||||
<type>_adisk._tcp</type>
|
||||
<txt-record>dk0=adVN=tm_share,adVF=0x82</txt-record>
|
||||
<txt-record>sys=waMa=0,adVF=0x100</txt-record>
|
||||
</service>
|
||||
</service-group>
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
services.samba = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
global = {
|
||||
"workgroup" = "WORKGROUP";
|
||||
"hosts allow" = "0.0.0.0/0";
|
||||
"guest account" = "nobody";
|
||||
"map to guest" = "bad user";
|
||||
"getwd cache" = "true";
|
||||
"strict sync" = "no";
|
||||
"use sendfile" = "true";
|
||||
};
|
||||
"tm_share" = {
|
||||
"path" = "/media/data/tm_share";
|
||||
"valid users" = "niko";
|
||||
"public" = "no";
|
||||
"writeable" = "yes";
|
||||
"force user" = "niko";
|
||||
"fruit:aapl" = "yes";
|
||||
"fruit:time machine" = "yes";
|
||||
"vfs objects" = "catia fruit streams_xattr";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue