Samba: Difference between revisions
m fixed incorrect line that did not work because it was missing the toString function so that uid and gid could be inserted into the samba options. Also was just missing 'uid=' for the uid option. |
|||
| Line 268: | Line 268: | ||
# or if you have specified `uid` and `gid` explicitly through NixOS configuration, | # or if you have specified `uid` and `gid` explicitly through NixOS configuration, | ||
# you can refer to them rather than hard-coding the values: | # you can refer to them rather than hard-coding the values: | ||
# in ["${automount_opts},credentials=/etc/nixos/smb-secrets,${config.users.users.<username>.uid},gid=${config.users.groups.<group>.gid}"]; | # in ["${automount_opts},credentials=/etc/nixos/smb-secrets,uid=${toString config.users.users.<username>.uid},gid=${toString config.users.groups.<group>.gid}"]; | ||
}; | }; | ||
} | } | ||