♻️ refactor samba.extraConfig
This commit is contained in:
parent
c42e7e669a
commit
70aba78c06
1 changed files with 17 additions and 8 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue