fixing som arr stack stuff

This commit is contained in:
Ingolf Wagner 2023-11-20 09:49:34 +01:00
parent 8204a1baa5
commit 4179ab456f
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
5 changed files with 58 additions and 4 deletions

View file

@ -29,6 +29,7 @@ let
"tdarr.robi" = hosts.robi; "tdarr.robi" = hosts.robi;
"prowlarr.robi" = hosts.robi; "prowlarr.robi" = hosts.robi;
"jellyseerr.robi" = hosts.robi; "jellyseerr.robi" = hosts.robi;
"unmanic.robi" = hosts.robi;
# pepe # pepe
"grafana.pepe" = hosts.pepe; "grafana.pepe" = hosts.pepe;
"loki.pepe" = hosts.pepe; "loki.pepe" = hosts.pepe;

View file

@ -95,6 +95,20 @@
kernelModules = [ "e1000e" ]; kernelModules = [ "e1000e" ];
}; };
# nixpkgs.config.packageOverrides = pkgs: {
# vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
# };
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
vaapiVdpau
libvdpau-va-gl
];
};
# just enable lan # just enable lan
#networking.dhcpcd.allowInterfaces = [ "enp0s25" ]; #networking.dhcpcd.allowInterfaces = [ "enp0s25" ];

View file

@ -35,7 +35,8 @@
./media-transmission.nix ./media-transmission.nix
./media-transmission2.nix ./media-transmission2.nix
./media-arr.nix ./media-arr.nix
./media-tdarr.nix #./media-tdarr.nix
#./media-unmanic.nix
./social-jitsi.nix ./social-jitsi.nix

View file

@ -29,9 +29,7 @@
image = "ghcr.io/haveagitgat/tdarr:latest"; # Warning: if the tag does not change, the image will not be updated image = "ghcr.io/haveagitgat/tdarr:latest"; # Warning: if the tag does not change, the image will not be updated
extraOptions = [ extraOptions = [
#"--network=bridge" #"--network=bridge"
"--privileged" #"--privileged"
#"--gpus=all"
"--device=/dev/dri:/dev/dri"
]; ];
}; };
}; };

View file

@ -0,0 +1,40 @@
{ config, lib, pkgs, ... }:
{
virtualisation.oci-containers = {
containers.unmanic = {
volumes = [
"/media/arr/unmanic/config:/config"
#"/media/arr/unmanic/library:/library"
"/media/arr/unmanic/tmp:/tmp/unmanic"
"/media:/library"
];
environment = {
PUID = toString config.users.users.media.uid;
PGID = toString config.users.groups.media.gid;
};
ports = [
"127.0.0.1:8889:8888"
];
image = "josh5/unmanic:latest";
};
};
#networking.firewall.interfaces.wq0.allowedTCPPorts = [ 8266 ];
#networking.firewall.interfaces.wq0.allowedUDPPorts = [ 8266 ];
#networking.firewall.interfaces.enp0s31f6.allowedTCPPorts = [ 8266 ];
#networking.firewall.interfaces.enp0s31f6.allowedUDPPorts = [ 8266 ];
services.nginx.virtualHosts."unmanic.${config.networking.hostName}.private" = {
extraConfig = ''
allow ${config.tinc.private.subnet};
deny all;
'';
locations."/" = {
proxyPass = "http://localhost:8889";
proxyWebsockets = true;
};
};
}