Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions modules/hosts/203-media.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,15 @@
"d /mnt/Shares/Public 2775 smbpublic smbpublic -"
"d /mnt/Shares/SemiPublic 2770 phonkd phonkd -"
"d /mnt/Shares/this-is-my-own-private-property-and-you-are-not-welcome-here 0750 phonkd phonkd -"
"d /mnt/Shares/this-is-my-own-private-property-and-you-are-not-welcome-here/clips 0750 phonkd phonkd -"
# The private share's ACL is group::--- so being in the `phonkd` group
# doesn't help — mirror the existing `user:smbpublic:r-x` pattern and
# name jellyfin explicitly. A+ recurses over existing content; the
# `d:` default entry handles anything Samba writes later.
"A+ /mnt/Shares/this-is-my-own-private-property-and-you-are-not-welcome-here - - - - u:jellyfin:rX,d:u:jellyfin:rX"
# doesn't help. Jellyfin only needs the clips library, so give it bare
# traverse (x, no r) on the private root -- it can cd into a path it
# already knows but can't list the root's contents -- and full
# read+execute only on clips itself. A+ recurses over existing content;
# the `d:` default entry on clips handles anything written there later.
"A+ /mnt/Shares/this-is-my-own-private-property-and-you-are-not-welcome-here - - - - u:jellyfin:x"
"A+ /mnt/Shares/this-is-my-own-private-property-and-you-are-not-welcome-here/clips - - - - u:jellyfin:rX,d:u:jellyfin:rX"
];

users.users.smbpublic = {
Expand Down