arion: first container: jellyfin!
This commit is contained in:
parent
d7b911d925
commit
9f27b249fb
2 changed files with 36 additions and 0 deletions
33
containers/jellyfin.nix
Normal file
33
containers/jellyfin.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue