File tree Expand file tree Collapse file tree 1 file changed +9
-16
lines changed
Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Original file line number Diff line number Diff line change 4141 requiresMediaMount = {
4242 RequiresMountsFor = mediaPath ;
4343 } ;
44+ servarrUMask = lib . mkForce "0002" ;
4445in
4546{
4647 imports = [
5859
5960 users . users . ${ config . util-nixarr . globals . bazarr . user } . extraGroups = [ "media" ] ;
6061
62+ # Service-specific systemd tweaks.
6163 systemd . services . radarr = {
62- serviceConfig = {
63- UMask = "0002" ;
64- } ;
64+ serviceConfig . UMask = servarrUMask ;
65+ unitConfig = requiresMediaMount ;
6566 } ;
66-
6767 systemd . services . sonarr = {
68- serviceConfig = {
69- UMask = "0002" ;
70- } ;
68+ serviceConfig . UMask = servarrUMask ;
69+ unitConfig = requiresMediaMount ;
7170 } ;
72-
7371 systemd . services . bazarr = {
74- serviceConfig = {
75- UMask = "0002" ;
76- } ;
72+ serviceConfig . UMask = servarrUMask ;
73+ unitConfig = requiresMediaMount ;
7774 } ;
78-
79- # make all services that r/w to nfs mount require the mount
75+ # Make services that r/w to NFS require the media mount.
8076 systemd . services . audiobookshelf . unitConfig = requiresMediaMount ;
81- systemd . services . bazarr . unitConfig = requiresMediaMount ;
8277 systemd . services . jellyseerr . unitConfig = requiresMediaMount ;
8378 systemd . services . lidarr . unitConfig = requiresMediaMount ;
84- systemd . services . radarr . unitConfig = requiresMediaMount ;
8579 systemd . services . readarr . unitConfig = requiresMediaMount ;
8680 systemd . services . readarr-audiobook . unitConfig = requiresMediaMount ;
87- systemd . services . sonarr . unitConfig = requiresMediaMount ;
8881 systemd . services . transmission . unitConfig = wgUnitDepsWithMount ;
8982 systemd . services . sabnzbd . unitConfig = wgUnitDepsWithMount ;
9083
You can’t perform that action at this time.
0 commit comments