alpha
Login
or
Join now
hermes.pds.lassul.us
/
superconfig
forked from
lass.pds.lassul.us/superconfig
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
flix: use settings for samba config
author
lassulus
date
2 years ago
(Oct 11, 2024, 1:51 PM CEST)
commit
661bbadb
661bbadb81e73ae4539b0092303df14b4eb1e187
parent
afc9f48e
afc9f48eb8da7abc5310fd8f68cd771d382a1cc1
+15
-31
1 changed file
Expand all
Collapse all
Unified
Split
2configs
services
flix
default.nix
+15
-31
2configs/services/flix/default.nix
View file
Reviewed
···
189
189
services.samba = {
190
190
enable = true;
191
191
enableNmbd = false;
192
192
-
extraConfig = ''
193
193
-
workgroup = WORKGROUP
194
194
-
server string = ${config.networking.hostName}
195
195
-
# only allow retiolum addresses
196
196
-
hosts allow = 42::/16 10.243.0.0/16 10.244.0.0/16 fdcc:c5da:5295:c853:d499::/80
197
197
-
198
198
-
# Use sendfile() for performance gain
199
199
-
use sendfile = true
200
200
-
201
201
-
# No NetBIOS is needed
202
202
-
disable netbios = true
203
203
-
204
204
-
# Only mangle non-valid NTFS names, don't care about DOS support
205
205
-
mangled names = illegal
206
206
-
207
207
-
# Performance optimizations
208
208
-
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
209
209
-
210
210
-
# Disable all printing
211
211
-
load printers = false
212
212
-
disable spoolss = true
213
213
-
printcap name = /dev/null
214
214
-
215
215
-
map to guest = Bad User
216
216
-
max log size = 50
217
217
-
dns proxy = no
218
218
-
security = user
219
219
-
220
220
-
[global]
221
221
-
syslog only = yes
222
222
-
'';
192
192
+
settings.global = {
193
193
+
"hosts allow" = "42::/16 10.243.0.0/16 10.244.0.0/16 fdcc:c5da:5295:c853:d499::/80";
194
194
+
"use sendfile" = "true";
195
195
+
"disable netbios" = "true";
196
196
+
"mangled names" = "illegal";
197
197
+
"socket options" = "TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536";
198
198
+
"load printers" = "false";
199
199
+
"disable spoolss" = "true";
200
200
+
"printcap name" = "/dev/null";
201
201
+
"map to guest" = "Bad User";
202
202
+
"max log size" = "50";
203
203
+
"dns proxy" = "no";
204
204
+
"security" = "user";
205
205
+
"syslog only" = "yes";
206
206
+
};
223
207
shares.public = {
224
208
comment = "Warez";
225
209
path = "/var/download";