Skip to content

Commit

Permalink
fix(module): stop using jellyConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
matt1432 committed Oct 30, 2024
1 parent 25f5866 commit 59dbbf2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jellyPkgs: {
inherit (builtins) isNull;

cfg = config.services.jellyfin;
jellyConfig = config.systemd.services.jellyfin.serviceConfig;

mkEmptyDefault = opt: name:
if isNull opt
Expand Down Expand Up @@ -128,7 +127,8 @@ in {
};

encoding = import ./options/encoding-options.nix {
inherit lib jellyConfig;
inherit lib;
jellyConfig = cfg;
ffmpeg = cfg.ffmpegPackage;
cfg = cfg.settings.encoding;
};
Expand All @@ -139,7 +139,8 @@ in {

system =
(import ./options/server-config.nix {
inherit config lib jellyConfig;
inherit config lib;
jellyConfig = cfg;
})
// (import ./options/base-app-config.nix {
inherit lib;
Expand Down
2 changes: 1 addition & 1 deletion modules/options/encoding-options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ in {

transcodingTempPath = mkOption {
type = types.str;
default = "${jellyConfig.WorkingDirectory}/transcodes";
default = "${jellyConfig.dataDir}/transcodes";
description = mdDocs ''
The temporary transcoding path.
'';
Expand Down
2 changes: 1 addition & 1 deletion modules/options/server-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ in {

metadataPath = mkOption {
type = types.str;
default = "${jellyConfig.WorkingDirectory}/metadata";
default = "${jellyConfig.dataDir}/metadata";
description = mdDocs ''
The metadata path.
'';
Expand Down

0 comments on commit 59dbbf2

Please sign in to comment.