♻️ refactor samba.extraConfig

This commit is contained in:
Ingolf Wagner 2024-09-14 08:51:15 +07:00
parent c42e7e669a
commit 70aba78c06
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -61,16 +61,25 @@ in
services.samba = {
enable = true;
# services.samba.securityType = "share";
extraConfig = ''
guest account = ${cfg.guestUser}
map to guest = bad user
settings = {
"guest account" = cfg.guestUser;
"map to guest" = "bad user";
# disable printing
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
'';
"load printers" = "no";
"printing" = "bsd";
"printcap name" = "/dev/null";
"disable spoolss" = "yes";
};
#extraConfig = ''
# guest account = ${cfg.guestUser}
# map to guest = bad user
# # disable printing
# load printers = no
# printing = bsd
# printcap name = /dev/null
# disable spoolss = yes
#'';
shares =
mapAttrs' (name: path: {