♻️ 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 = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# services.samba.securityType = "share";
|
# services.samba.securityType = "share";
|
||||||
extraConfig = ''
|
settings = {
|
||||||
guest account = ${cfg.guestUser}
|
"guest account" = cfg.guestUser;
|
||||||
map to guest = bad user
|
"map to guest" = "bad user";
|
||||||
|
|
||||||
# disable printing
|
# disable printing
|
||||||
load printers = no
|
"load printers" = "no";
|
||||||
printing = bsd
|
"printing" = "bsd";
|
||||||
printcap name = /dev/null
|
"printcap name" = "/dev/null";
|
||||||
disable spoolss = yes
|
"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 =
|
shares =
|
||||||
mapAttrs' (name: path: {
|
mapAttrs' (name: path: {
|
||||||
|
|
Loading…
Reference in a new issue