dev.fron.io nixrc / 72dd2a2
containers(jellyfin): fix the mode fudgery, again Tony Olagbaiye 14 days ago
1 changed file(s) with 21 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
22 let
33 hostAddress = "10.11.0.1";
44 localAddress = "10.11.0.2";
5
6 hostConfig = config;
57 in {
68 containers.jellyfin =
79 {
4951 };
5052 serviceConfig.ExecStartPost = "${pkgs.coreutils}/bin/chmod g+rwx /srv/ftp";
5153 };
54
55 users = rec {
56 users = {
57 root.extraGroups = [ "transmission" ];
58
59 jellyfin.extraGroups = [ "transmission" ];
60 sonarr.extraGroups = [ "transmission" ];
61 radarr.extraGroups = [ "transmission" ];
62 lidarr.extraGroups = [ "transmission" ];
63 bazarr.extraGroups = [ "transmission" ];
64 jackett.extraGroups = [ "transmission" ];
65 transmission.extraGroups = [ "transmission" ];
66
67 transmission = lib.mapAttrs (_: lib.mkForce) {
68 inherit (hostConfig.users.users.bao) uid group;
69 };
70 };
71 };
5272 };
5373 };
5474 bindMounts = {
6686
6787 systemd.tmpfiles.rules = [
6888 "d /srv/ftp 2777 root root"
69 ]; #doas chmod a+rx /srv/ftp
89 ];
7090 }