modify jellyfin & nix-bitcoin containers

This commit is contained in:
Sam 2024-10-07 09:35:22 +01:00
parent 51320794e6
commit 62a3630a5c
4 changed files with 18 additions and 5 deletions

View File

@ -18,11 +18,21 @@ in {
networking.nat.internalInterfaces = ["ve-+"];
networking.nat.externalInterface = "br0";
containers.postgres = {
containers.${container_name} = {
autoStart = true;
privateNetwork = true;
hostBridge = "br0";
nixpkgs = pkgs.path;
bindMounts = {
"/var/lib/jellyfin" = {
hostPath = "/media/main-ssd/jellyfin";
isReadOnly = false;
};
"/var/lib/jellyfin/data/media" = {
hostPath = "/media/media";
isReadOnly = true;
};
};
config = {
pkgs,
@ -51,13 +61,13 @@ in {
services.jellyfin = {
enable = true;
openFirewall = true;
user="jellyfin";
};
environment.systemPackages = [
pkgs.jellyfin
pkgs.jellyfin-web
pkgs.jellyfin-ffmpeg
pkgs.lsof
];
services.openssh = {

View File

@ -10,7 +10,7 @@
bitcoin-HMAC-privileged = lib.optionalString (lib.hasAttr "sops-nix" inputs) config.sops.secrets."software/bitcoind/bitcoin-HMAC-privileged".path;
bitcoin-HMAC-public = lib.optionalString (lib.hasAttr "sops-nix" inputs) config.sops.secrets."software/bitcoind/bitcoin-HMAC-public".path;
container_name = "bitcoin-node";
container_ip = "10.0.10.5";
container_ip = "10.0.10.4";
pubKeys = lib.filesystem.listFilesRecursive ../../users/keys;
in {
sops.secrets = {

View File

@ -26,7 +26,7 @@ in {
networking.nat.internalInterfaces = ["ve-+"];
networking.nat.externalInterface = "br0";
containers.postgres = {
containers.${container_name} = {
autoStart = true;
privateNetwork = true;
hostBridge = "br0";

View File

@ -49,6 +49,7 @@ in {
../common/optional/docker
../common/optional/nixos-containers/nix-bitcoin.nix
../common/optional/nixos-containers/postgres.nix
../common/optional/nixos-containers/jellyfin.nix
];
fileSystems."/media/main-ssd" = {
@ -85,6 +86,7 @@ in {
pkgs.sof-firmware
];
# Add hardware support for intel gpus as specified here: https://nixos.wiki/wiki/Jellyfin
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
};
@ -97,7 +99,8 @@ in {
vaapiVdpau
libvdpau-va-gl
intel-compute-runtime
vpl-gpu-rt
# only available on unstable
unstable.vpl-gpu-rt
intel-media-sdk
];
};