mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 22:12:56 +00:00
shared group for media services
This commit is contained in:
parent
c1e89fb20e
commit
fb44473d22
@ -10,22 +10,33 @@
|
|||||||
|
|
||||||
config = lib.mkIf (config.arrServer != null) {
|
config = lib.mkIf (config.arrServer != null) {
|
||||||
|
|
||||||
services.sonarr.enable = true;
|
services = {
|
||||||
services.radarr.enable = true;
|
bazarr = {
|
||||||
services.bazarr.enable = true;
|
enable = true;
|
||||||
services.prowlarr.enable = true;
|
group = "media";
|
||||||
services.sabnzbd.enable = true;
|
};
|
||||||
services.sabnzbd.configFile = "/data/downloads/sabnzbd/sabnzbd.ini";
|
jellyseerr.enable = true;
|
||||||
services.jellyseerr.enable = true;
|
prowlarr.enable = true;
|
||||||
unfreePackages = [ "unrar" ]; # Required for sabnzbd
|
sabnzbd = {
|
||||||
|
enable = true;
|
||||||
|
group = "media";
|
||||||
|
configFile = "/data/downloads/sabnzbd/sabnzbd.ini";
|
||||||
|
};
|
||||||
|
sonarr = {
|
||||||
|
enable = true;
|
||||||
|
group = "media";
|
||||||
|
};
|
||||||
|
radarr = {
|
||||||
|
enable = true;
|
||||||
|
group = "media";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Grant users access to destination directories
|
users.groups.media = { };
|
||||||
users.users.sonarr.extraGroups = [ "jellyfin" "sabnzbd" ];
|
users.users.${config.user}.extraGroups = [ "media" ];
|
||||||
users.users.radarr.extraGroups = [ "jellyfin" "sabnzbd" ];
|
|
||||||
users.users.bazarr.extraGroups = [ "jellyfin" "sabnzbd" ];
|
|
||||||
users.users.sabnzbd.homeMode = "0770";
|
users.users.sabnzbd.homeMode = "0770";
|
||||||
users.users.${config.user}.extraGroups = [ "sabnzbd" ];
|
|
||||||
users.users.jellyfin.extraGroups = [ "sonarr" "radarr" ];
|
unfreePackages = [ "unrar" ]; # Required for sabnzbd
|
||||||
|
|
||||||
# Requires updating the base_url config value in each service
|
# Requires updating the base_url config value in each service
|
||||||
# If you try to rewrite the URL, the service won't redirect properly
|
# If you try to rewrite the URL, the service won't redirect properly
|
||||||
|
@ -11,10 +11,8 @@
|
|||||||
config = lib.mkIf (config.streamServer != null) {
|
config = lib.mkIf (config.streamServer != null) {
|
||||||
|
|
||||||
services.jellyfin.enable = true;
|
services.jellyfin.enable = true;
|
||||||
users.users.jellyfin = {
|
services.jellyfin.group = "media";
|
||||||
isSystemUser = true;
|
users.users.jellyfin = { isSystemUser = true; };
|
||||||
group = "jellyfin";
|
|
||||||
};
|
|
||||||
|
|
||||||
caddy.routes = [{
|
caddy.routes = [{
|
||||||
match = [{ host = [ config.streamServer ]; }];
|
match = [{ host = [ config.streamServer ]; }];
|
||||||
@ -24,13 +22,10 @@
|
|||||||
}];
|
}];
|
||||||
}];
|
}];
|
||||||
|
|
||||||
# Grant user access to Jellyfin directories
|
|
||||||
users.users.${config.user}.extraGroups = [ "jellyfin" ];
|
|
||||||
|
|
||||||
# Create videos directory, allow anyone in Jellyfin group to manage it
|
# Create videos directory, allow anyone in Jellyfin group to manage it
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d /var/lib/jellyfin 0775 jellyfin jellyfin"
|
"d /var/lib/jellyfin 0775 jellyfin media"
|
||||||
"d /var/lib/jellyfin/library 0775 jellyfin jellyfin"
|
"d /var/lib/jellyfin/library 0775 jellyfin media"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable VA-API for hardware transcoding
|
# Enable VA-API for hardware transcoding
|
||||||
|
Loading…
Reference in New Issue
Block a user