♻️ 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 = { 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: {