Apply variable overhaul to server as well

This commit is contained in:
Jimbo 2024-09-23 16:27:23 -04:00
parent 6dab8fc029
commit 7759fd1fa9
2 changed files with 11 additions and 15 deletions

View file

@ -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