Skip to content

Commit

Permalink
gonic: add playlists path
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Oct 23, 2024
1 parent 53aeca4 commit 830c402
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/services/gonic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ in
description = "The path to the podcast directory";
default = "/var/lib/gonic/podcasts";
};
playlistsPath = mkOption {
type = types.path;
description = "The path to the playlist directory";
default = "/var/lib/gonic/playlists";
};
cachePath = mkOption {
type = types.path;
description = "The path to the cache directory";
Expand Down Expand Up @@ -74,6 +79,7 @@ in
environment = {
GONIC_MUSIC_PATH = cfg.musicDir;
GONIC_PODCAST_PATH = cfg.podcastPath;
GONIC_PLAYLISTS_PATH = cfg.playlistsPath;
GONIC_CACHE_PATH = cfg.cachePath;
GONIC_DB_PATH = cfg.dbPath;
GONIC_LISTEN_ADDR = cfg.listenAddress;
Expand All @@ -85,6 +91,7 @@ in
preStart = ''
mkdir -p ${cfg.musicDir}
mkdir -p ${cfg.podcastPath}
mkdir -p ${cfg.playlistsPath}
mkdir -p ${cfg.cachePath}
'';
serviceConfig = {
Expand Down

0 comments on commit 830c402

Please sign in to comment.