From 8876a339b6b262b7eae02305f03165d62e004dd5 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 5 Nov 2024 12:00:00 +0000 Subject: [PATCH] Move jellyfin into its own module --- lib/nixos/configuration.nix | 3 --- modules/nixos/desktop/default.nix | 1 + modules/nixos/desktop/jellyfin.nix | 6 ++++++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 modules/nixos/desktop/jellyfin.nix diff --git a/lib/nixos/configuration.nix b/lib/nixos/configuration.nix index 7a3e952..b0b0c43 100644 --- a/lib/nixos/configuration.nix +++ b/lib/nixos/configuration.nix @@ -187,9 +187,6 @@ in zeroad ]; - services.jellyfin.enable = true; - services.jellyfin.openFirewall = true; - # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # programs.mtr.enable = true; diff --git a/modules/nixos/desktop/default.nix b/modules/nixos/desktop/default.nix index a12a5c9..1c4f47f 100644 --- a/modules/nixos/desktop/default.nix +++ b/modules/nixos/desktop/default.nix @@ -3,5 +3,6 @@ ../. ./fonts.nix ./gitea.nix + ./jellyfin.nix ]; } diff --git a/modules/nixos/desktop/jellyfin.nix b/modules/nixos/desktop/jellyfin.nix new file mode 100644 index 0000000..8379831 --- /dev/null +++ b/modules/nixos/desktop/jellyfin.nix @@ -0,0 +1,6 @@ +{ + services.jellyfin = { + enable = true; + openFirewall = true; + }; +}