31 lines
547 B
Nix
Executable File
31 lines
547 B
Nix
Executable File
{
|
|
config,
|
|
lib,
|
|
namespace,
|
|
...
|
|
}:
|
|
with lib;
|
|
let
|
|
name = "jellyfin";
|
|
cfg = config.${namespace}.services.${name};
|
|
|
|
jellyfinConfig = lib.${namespace}.mkModule {
|
|
inherit config name;
|
|
description = "jellyfin";
|
|
options = { };
|
|
moduleConfig = {
|
|
services.jellyfin = {
|
|
enable = true;
|
|
inherit (cfg) openFirewall;
|
|
user = "nix-apps";
|
|
group = "jallen-nas";
|
|
dataDir = "${cfg.configDir}/jellyfin";
|
|
# cacheDir = "/cache";
|
|
};
|
|
};
|
|
};
|
|
in
|
|
{
|
|
imports = [ jellyfinConfig ];
|
|
}
|