From 43343b2824089a484a448fac546ca6e3c8709cb7 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 28 Feb 2023 04:27:10 +0000 Subject: [PATCH] add jellyfin to swan --- hosts/flame/default.nix | 2 +- hosts/swan/default.nix | 2 +- modules/nixos/services/jellyfin.nix | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/flame/default.nix b/hosts/flame/default.nix index 89db166..4eff655 100644 --- a/hosts/flame/default.nix +++ b/hosts/flame/default.nix @@ -29,7 +29,7 @@ nixpkgs.lib.nixosSystem { # FQDNs for various services networking.hostName = "flame"; bookServer = "books.masu.rs"; - streamServer = "stream.masu.rs"; + # streamServer = "stream.masu.rs"; nextcloudServer = "cloud.masu.rs"; transmissionServer = "download.masu.rs"; metricsServer = "metrics.masu.rs"; diff --git a/hosts/swan/default.nix b/hosts/swan/default.nix index e459bb0..0228487 100644 --- a/hosts/swan/default.nix +++ b/hosts/swan/default.nix @@ -38,8 +38,8 @@ nixpkgs.lib.nixosSystem { theme = { colors = (import ../../colorscheme/gruvbox).dark; }; nixpkgs.overlays = overlays; neovim.enable = true; - wsl.enable = false; caddy.enable = true; + streamServer = "stream.masu.rs"; backup.s3 = { endpoint = "s3.us-west-002.backblazeb2.com"; diff --git a/modules/nixos/services/jellyfin.nix b/modules/nixos/services/jellyfin.nix index a870cdc..9ea1121 100644 --- a/modules/nixos/services/jellyfin.nix +++ b/modules/nixos/services/jellyfin.nix @@ -20,6 +20,9 @@ }]; }]; + # Grant user access to Jellyfin directories + users.users.${config.user}.extraGroups = [ "jellyfin" ]; + # Create videos directory, allow anyone in Jellyfin group to manage it systemd.tmpfiles.rules = [ "d /var/lib/jellyfin 0775 jellyfin jellyfin"