Apply variable overhaul to server as well
This commit is contained in:
parent
6dab8fc029
commit
7759fd1fa9
2 changed files with 11 additions and 15 deletions
|
@ -1,16 +1,14 @@
|
|||
{
|
||||
{outputs, ...}: {
|
||||
services = {
|
||||
samba = {
|
||||
enable = true;
|
||||
securityType = "user";
|
||||
openFirewall = true;
|
||||
extraConfig = let
|
||||
ips = import ../modules/ips.nix;
|
||||
in ''
|
||||
extraConfig = ''
|
||||
workgroup = WORKGROUP
|
||||
server string = JimSMB
|
||||
security = user
|
||||
hosts allow = ${ips.localSpan}. 127.0.0.1 localhost
|
||||
hosts allow = ${outputs.ips.localSpan}. 127.0.0.1 localhost
|
||||
hosts deny = 0.0.0.0/0
|
||||
guest account = nobody
|
||||
map to guest = bad user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue