mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
25 lines
575 B
Nix
25 lines
575 B
Nix
{ pkgs, lib, config, ... }: {
|
|
options.mods.server.media = {
|
|
enable = lib.mkEnableOption {
|
|
default = false;
|
|
description = "enables media related servers";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.mods.server.media.enable {
|
|
services.jellyfin = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
user = "${config.mods.user.name}";
|
|
};
|
|
|
|
services.immich = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
host = "0.0.0.0";
|
|
# user = "${config.mods.user.name}";
|
|
};
|
|
|
|
users.users.immich.extraGroups = [ "video" "render" ];
|
|
};
|
|
}
|