fix: samba perms unfucked

This commit is contained in:
Nick 2025-11-29 05:01:10 -06:00
parent d788440daa
commit ecbbebfd90
3 changed files with 31 additions and 6 deletions

View file

@ -37,6 +37,16 @@ in
};
};
users.users.jellyfin = {
isSystemUser = true;
group = serviceCfg.name;
uid = 993;
};
users.groups.jellyfin = {
gid = 993;
};
networking.firewall.allowedTCPPorts = [
22
serviceCfg.ports.port0
@ -48,7 +58,7 @@ in
device = "tmpfs";
fsType = "tmpfs";
options = [
"size=4G"
"size=6G"
"mode=1777"
];
};
@ -166,13 +176,27 @@ in
};
};
};
users = {
groups.jellyfin = {
gid = 993;
members = [ user0 ];
};
users.users.caddy.extraGroups = [ "acme" ];
users = {
jellyfin = {
isSystemUser = true;
group = serviceCfg.name;
uid = 993;
};
caddy.extraGroups = [ "acme" ];
};
};
systemd.tmpfiles.rules = [
"d ${serviceCfg.mntPaths.path0} 0755 microvm wheel - -"
"d ${serviceCfg.mntPaths.path0}/data 0755 microvm wheel - -"
"d ${serviceCfg.mntPaths.path0}/cache 0755 microvm wheel - -"
"d ${serviceCfg.mntPaths.path0}/media 0775 microvm wheel - -"
"Z ${serviceCfg.mntPaths.path0}/media 0775 jellyfin jellyfin - -"
];
}