From 2d27bf7505734564a8040fc4eb727a81220117ea Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Wed, 8 Nov 2023 21:32:00 -0700 Subject: [PATCH] Allow other users to access public samba mount --- common/pc/mount-samba.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/pc/mount-samba.nix b/common/pc/mount-samba.nix index 37c69e6..0940203 100644 --- a/common/pc/mount-samba.nix +++ b/common/pc/mount-samba.nix @@ -13,6 +13,8 @@ let auth_opts = "sec=ntlmv2i,credentials=/run/agenix/smb-secrets"; 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}"; in { @@ -24,7 +26,7 @@ in fileSystems."/mnt/public" = { device = "//s0.koi-bebop.ts.net/public"; fsType = "cifs"; - options = [ opts ]; + options = [ "${opts},${public_user_opts}" ]; }; fileSystems."/mnt/private" = {