mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
fix: samba perms unfucked
This commit is contained in:
parent
d788440daa
commit
ecbbebfd90
3 changed files with 31 additions and 6 deletions
|
|
@ -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 - -"
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue