move jellyfin to torus

This commit is contained in:
Tyler Starr 2024-09-30 10:43:24 -07:00
parent 1edff2811f
commit aee4e5ff5c
4 changed files with 8 additions and 15 deletions

View File

@ -10,6 +10,7 @@
./gitea.nix
./nextcloud.nix
./backup.nix
./jellyfin.nix
];
# Use normal kernel
@ -99,9 +100,6 @@
programs = {
chezmoi.apply = true;
};
services = {
jellyfin.enable = true;
};
system = {
backup.enable = true;
terminal.enable = true;

View File

@ -0,0 +1,6 @@
{ config, lib, pkgs, user, ... }:
{
services.jellyfin.enable = true;
services.jellyfin.openFirewall = true;
services.jellyfin.user = "${user}";
}

View File

@ -1,4 +1,4 @@
{ ... }:
{
imports = [ ./jellyfin.nix ./peripherals.nix ./samba-client.nix ./virt-manager.nix ];
imports = [ ./peripherals.nix ./samba-client.nix ./virt-manager.nix ];
}

View File

@ -1,11 +0,0 @@
{ config, lib, pkgs, user, ... }:
let cfg = config.modules.services.jellyfin;
in {
options.modules.services.jellyfin.enable = lib.mkEnableOption "jellyfin";
config = lib.mkIf cfg.enable {
services.jellyfin.enable = true;
services.jellyfin.openFirewall = true;
services.jellyfin.user = "${user}";
};
}