improve PS2 handling
This commit is contained in:
parent
486ce8557b
commit
4c12928356
57
samba.nix
57
samba.nix
@ -2,34 +2,63 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
|
users.users.samba = {
|
||||||
|
isSystemUser = true;
|
||||||
|
description = "Samba User";
|
||||||
|
extraGroups = [ "samba" ];
|
||||||
|
};
|
||||||
|
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
securityType = "user";
|
securityType = "user";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
workgroup = WORKGROUP
|
workgroup = WORKGROUP
|
||||||
server string = smbnix
|
server string = PS2 Samba Server
|
||||||
netbios name = smbnix
|
server role = standalone server
|
||||||
security = user
|
max log size = 0
|
||||||
#use sendfile = yes
|
|
||||||
#max protocol = smb2
|
# Disable printers.
|
||||||
min protocol = NT1
|
load printers = no
|
||||||
hosts allow = 192.168.0 localhost
|
printing = bsd
|
||||||
hosts deny = 0.0.0.0/0
|
printcap name = /etc/printcap
|
||||||
guest account = nobody
|
printcap cache time = 0
|
||||||
|
disable spoolss = yes
|
||||||
|
|
||||||
|
pam password change = yes
|
||||||
map to guest = bad user
|
map to guest = bad user
|
||||||
|
usershare allow guests = yes
|
||||||
|
create mask = 0664
|
||||||
|
force create mode = 0664
|
||||||
|
directory mask = 0775
|
||||||
|
force directory mode = 0775
|
||||||
|
force user =
|
||||||
|
force group = users
|
||||||
|
|
||||||
|
# ===========================
|
||||||
|
# PlayStations 2 OPL settings
|
||||||
|
# ===========================
|
||||||
|
# Lower the minimum protocol to NT1 (a SMB1 dialect), this is required since
|
||||||
|
# Samba 4.11 changed the default and deprecated SMB1.
|
||||||
|
# See https://github.com/ifcaro/Open-PS2-Loader/issues/86 and
|
||||||
|
# https://github.com/ps2dev/ps2sdk/issues/72 for future SMB2 support.
|
||||||
|
server min protocol = NT1
|
||||||
|
server signing = disabled
|
||||||
|
smb encrypt = disabled
|
||||||
|
socket options = TCP_NODELAY TCP_KEEPIDLE=20 IPTOS_LOWDELAY SO_KEEPALIVE
|
||||||
|
|
||||||
|
# Disable keepalive to avoid hanging onto locks. Should not be needed
|
||||||
|
# due to SO_KEEPALIVE and helps with FMV audio stutter.
|
||||||
|
keepalive = 0
|
||||||
'';
|
'';
|
||||||
shares = {
|
shares = {
|
||||||
public = {
|
PS2SMB = {
|
||||||
|
"comment" = "PlaStation 2";
|
||||||
path = "/mnt/ps2";
|
path = "/mnt/ps2";
|
||||||
browseable = "yes";
|
browseable = "yes";
|
||||||
"read only" = "no";
|
"read only" = "no";
|
||||||
"guest ok" = "yes";
|
"guest ok" = "yes";
|
||||||
"public" = "yes";
|
"public" = "yes";
|
||||||
"available" = "yes";
|
"available" = "yes";
|
||||||
"create mask" = "0644";
|
|
||||||
"directory mask" = "0755";
|
|
||||||
"force user" = "username";
|
|
||||||
"force group" = "groupname";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user