arion: first container: jellyfin!

This commit is contained in:
Veneficium 2024-12-23 23:58:50 +01:00
parent d7b911d925
commit 9f27b249fb
2 changed files with 36 additions and 0 deletions

33
containers/jellyfin.nix Normal file
View file

@ -0,0 +1,33 @@
{
config,
lib,
pkgs,
...
}:
{
options.settings.containers.jellyfin = {
enable = lib.mkEnableOption "enable jellyfin arion container";
};
config = lib.mkIf config.settings.containers.jellyfin.enable {
virtualisation.arion.projects.jellyfin = {
settings = {
project.name = "jellyfin";
services.jellyfin = {
service.useHostStore = true;
nixos.useSystemd = true;
nixos.configuration =
{ lib, ... }:
{
boot.isContainer = true;
boot.tmp.useTmpfs = true;
networking.useDHCP = false;
services.nscd.enable = false;
system.nssModules = lib.mkForce [ ];
};
service.ports = [ "8096:8096" ];
};
};
};
};
}

View file

@ -10,6 +10,7 @@
# Include the results of the hardware scan.
./hardware-configuration.nix
../../modules/nixos
../../containers/jellyfin.nix
];
settings = {
@ -27,6 +28,8 @@
openssh.enable = lib.mkForce true;
openssh.usePAM = lib.mkForce true;
};
containers.jellyfin.enable = true;
};
boot.kernelPackages = pkgs.linuxPackages_latest;