Audiobookshelf fixes
This commit is contained in:
@@ -45,7 +45,10 @@ in {
|
|||||||
type = types.port;
|
type = types.port;
|
||||||
default = 9292;
|
default = 9292;
|
||||||
example = 8000;
|
example = 8000;
|
||||||
description = "Default port for Audiobookshelf";
|
description = ''
|
||||||
|
Default port for Audiobookshelf. The default is 8000 in nixpkgs,
|
||||||
|
but that's far too common a port to use.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
openFirewall = mkOption {
|
openFirewall = mkOption {
|
||||||
|
|||||||
+19
-15
@@ -39,6 +39,11 @@ with lib; let
|
|||||||
chown -R streamer:root "${cfg.plex.stateDir}"
|
chown -R streamer:root "${cfg.plex.stateDir}"
|
||||||
find "${cfg.plex.stateDir}" \( -type d -exec chmod 0700 {} + -true \) -o \( -exec chmod 0600 {} + \)
|
find "${cfg.plex.stateDir}" \( -type d -exec chmod 0700 {} + -true \) -o \( -exec chmod 0600 {} + \)
|
||||||
''
|
''
|
||||||
|
+ strings.optionalString cfg.audiobookshelf.enable ''
|
||||||
|
chown -R streamer:media "${cfg.mediaDir}/library"
|
||||||
|
chown -R streamer:root "${cfg.audiobookshelf.stateDir}"
|
||||||
|
find "${cfg.audiobookshelf.stateDir}" \( -type d -exec chmod 0700 {} + -true \) -o \( -exec chmod 0600 {} + \)
|
||||||
|
''
|
||||||
+ strings.optionalString cfg.transmission.enable ''
|
+ strings.optionalString cfg.transmission.enable ''
|
||||||
chown -R torrenter:media "${cfg.mediaDir}/torrents"
|
chown -R torrenter:media "${cfg.mediaDir}/torrents"
|
||||||
chown -R torrenter:cross-seed "${cfg.transmission.stateDir}"
|
chown -R torrenter:cross-seed "${cfg.transmission.stateDir}"
|
||||||
@@ -92,21 +97,22 @@ with lib; let
|
|||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
./audiobookshelf
|
||||||
./autobrr
|
./autobrr
|
||||||
./jellyfin
|
|
||||||
./jellyseerr
|
|
||||||
./plex
|
|
||||||
./bazarr
|
./bazarr
|
||||||
./ddns
|
./ddns
|
||||||
./radarr
|
./jellyfin
|
||||||
|
./jellyseerr
|
||||||
./lidarr
|
./lidarr
|
||||||
./readarr
|
|
||||||
./sonarr
|
|
||||||
./openssh
|
./openssh
|
||||||
|
./plex
|
||||||
./prowlarr
|
./prowlarr
|
||||||
./transmission
|
./radarr
|
||||||
./sabnzbd
|
./readarr
|
||||||
./recyclarr
|
./recyclarr
|
||||||
|
./sabnzbd
|
||||||
|
./sonarr
|
||||||
|
./transmission
|
||||||
../util
|
../util
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -134,24 +140,22 @@ in {
|
|||||||
|
|
||||||
The following services are supported:
|
The following services are supported:
|
||||||
|
|
||||||
|
- [Audiobookshelf](#nixarr.audiobookshelf.enable)
|
||||||
|
- [Autobrr](#nixarr.autobrr.enable)
|
||||||
|
- [Bazarr](#nixarr.bazarr.enable)
|
||||||
- [Jellyfin](#nixarr.jellyfin.enable)
|
- [Jellyfin](#nixarr.jellyfin.enable)
|
||||||
- [Jellyseerr](#nixarr.jellyseerr.enable)
|
- [Jellyseerr](#nixarr.jellyseerr.enable)
|
||||||
- [Plex](#nixarr.plex.enable)
|
|
||||||
- [Bazarr](#nixarr.bazarr.enable)
|
|
||||||
- [Lidarr](#nixarr.lidarr.enable)
|
- [Lidarr](#nixarr.lidarr.enable)
|
||||||
|
- [Plex](#nixarr.plex.enable)
|
||||||
- [Prowlarr](#nixarr.prowlarr.enable)
|
- [Prowlarr](#nixarr.prowlarr.enable)
|
||||||
- [Radarr](#nixarr.radarr.enable)
|
- [Radarr](#nixarr.radarr.enable)
|
||||||
- [Readarr](#nixarr.readarr.enable)
|
- [Readarr](#nixarr.readarr.enable)
|
||||||
- [Recyclarr](#nixarr.recyclarr.enable)
|
- [Recyclarr](#nixarr.recyclarr.enable)
|
||||||
|
- [SABnzbd](#nixarr.sabnzbd.enable)
|
||||||
- [Sonarr](#nixarr.sonarr.enable)
|
- [Sonarr](#nixarr.sonarr.enable)
|
||||||
- [Transmission](#nixarr.transmission.enable)
|
- [Transmission](#nixarr.transmission.enable)
|
||||||
- [SABnzbd](#nixarr.sabnzbd.enable)
|
|
||||||
- [Autobrr](#nixarr.autobrr.enable)
|
|
||||||
|
|
||||||
Remember to read the options.
|
Remember to read the options.
|
||||||
|
|
||||||
> **Warning:** The Jellyseerr module currently does not work on nixos 24.11.
|
|
||||||
> You will have to update to the `unstable` branch in order for it to work.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user