Allow other users to access public samba mount
This commit is contained in:
parent
d07af6d101
commit
2d27bf7505
@ -13,6 +13,8 @@ let
|
|||||||
auth_opts = "sec=ntlmv2i,credentials=/run/agenix/smb-secrets";
|
auth_opts = "sec=ntlmv2i,credentials=/run/agenix/smb-secrets";
|
||||||
version_opts = "vers=3.1.1";
|
version_opts = "vers=3.1.1";
|
||||||
|
|
||||||
|
public_user_opts = "gid=${toString config.users.groups.users.gid}";
|
||||||
|
|
||||||
opts = "${systemd_opts},${network_opts},${user_opts},${version_opts},${auth_opts}";
|
opts = "${systemd_opts},${network_opts},${user_opts},${version_opts},${auth_opts}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -24,7 +26,7 @@ in
|
|||||||
fileSystems."/mnt/public" = {
|
fileSystems."/mnt/public" = {
|
||||||
device = "//s0.koi-bebop.ts.net/public";
|
device = "//s0.koi-bebop.ts.net/public";
|
||||||
fsType = "cifs";
|
fsType = "cifs";
|
||||||
options = [ opts ];
|
options = [ "${opts},${public_user_opts}" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/mnt/private" = {
|
fileSystems."/mnt/private" = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user