Run Jellyseerr in NixNG container
This commit is contained in:
parent
708e6b4336
commit
49ecab9603
6 changed files with 44 additions and 6 deletions
|
@ -16,9 +16,9 @@ Legend:
|
||||||
| ✨ | `nixng-attic` | |
|
| ✨ | `nixng-attic` | |
|
||||||
| ✨ | `nixng-ntfy-sh` | |
|
| ✨ | `nixng-ntfy-sh` | |
|
||||||
| ✨ | `nixng-radicale` | |
|
| ✨ | `nixng-radicale` | |
|
||||||
|
| ✨ | `nixng-jellyseerr` | |
|
||||||
| ✅ | `jellyfin/jellyfin` | |
|
| ✅ | `jellyfin/jellyfin` | |
|
||||||
| ✅ | `linuxserver/deluge` | |
|
| ✅ | `linuxserver/deluge` | |
|
||||||
| ✅ | `fallenbagel/jellyseerr` | |
|
|
||||||
| ✅ | `lscr.io/linuxserver/radarr` | |
|
| ✅ | `lscr.io/linuxserver/radarr` | |
|
||||||
| ✅ | `lscr.io/linuxserver/prowlarr` | |
|
| ✅ | `lscr.io/linuxserver/prowlarr` | |
|
||||||
| ✅ | `lscr.io/linuxserver/sonarr` | |
|
| ✅ | `lscr.io/linuxserver/sonarr` | |
|
||||||
|
|
23
flake.lock
23
flake.lock
|
@ -676,11 +676,11 @@
|
||||||
"treefmt-nix": "treefmt-nix_2"
|
"treefmt-nix": "treefmt-nix_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1734638453,
|
"lastModified": 1734639946,
|
||||||
"narHash": "sha256-eZfU3yMDpRFJ2ZZUXDyOxTQCZ6DgnbpmMmsFjqAhSW8=",
|
"narHash": "sha256-IEuuBrDBGndTnKLfZJ9e8jBvHmIUsUAaTizgn1jmPDs=",
|
||||||
"owner": "pizzapim",
|
"owner": "pizzapim",
|
||||||
"repo": "NixNG",
|
"repo": "NixNG",
|
||||||
"rev": "59039fdc19c743035f3c1bd0f6b5968484c04e19",
|
"rev": "a9fa516abbe137c7abbce564150e7e84c701ef05",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -759,6 +759,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-jellyseerr": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1734541836,
|
||||||
|
"narHash": "sha256-7t3dVNT54Zef2smJb+SElmMlhPsgfyRuFMIFZXe2mEo=",
|
||||||
|
"owner": "coonce",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "d4e5e684f7edbae6f814ab16e05a82fd25c63cda",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "coonce",
|
||||||
|
"ref": "jellyseerr",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1730741070,
|
"lastModified": 1730741070,
|
||||||
|
@ -923,6 +939,7 @@
|
||||||
"nixhelm": "nixhelm",
|
"nixhelm": "nixhelm",
|
||||||
"nixng": "nixng",
|
"nixng": "nixng",
|
||||||
"nixpkgs": "nixpkgs_2",
|
"nixpkgs": "nixpkgs_2",
|
||||||
|
"nixpkgs-jellyseerr": "nixpkgs-jellyseerr",
|
||||||
"servers": "servers",
|
"servers": "servers",
|
||||||
"treefmt-nix": "treefmt-nix_4"
|
"treefmt-nix": "treefmt-nix_4"
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
treefmt-nix.url = "github:numtide/treefmt-nix";
|
treefmt-nix.url = "github:numtide/treefmt-nix";
|
||||||
|
nixpkgs-jellyseerr.url = "github:coonce/nixpkgs?ref=jellyseerr";
|
||||||
|
|
||||||
git-hooks = {
|
git-hooks = {
|
||||||
url = "github:cachix/git-hooks.nix";
|
url = "github:cachix/git-hooks.nix";
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
globals,
|
globals,
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
utils,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options.media.enable = lib.mkEnableOption "media";
|
options.media.enable = lib.mkEnableOption "media";
|
||||||
|
@ -167,7 +168,7 @@
|
||||||
volumes.config.persistentVolumeClaim.claimName = "jellyseerr";
|
volumes.config.persistentVolumeClaim.claimName = "jellyseerr";
|
||||||
|
|
||||||
containers.jellyseerr = {
|
containers.jellyseerr = {
|
||||||
image = globals.images.jellyseerr;
|
image = utils.mkNixNGImage "jellyseerr";
|
||||||
ports.web.containerPort = 5055;
|
ports.web.containerPort = 5055;
|
||||||
imagePullPolicy = "IfNotPresent";
|
imagePullPolicy = "IfNotPresent";
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
flake-utils,
|
flake-utils,
|
||||||
nixng,
|
nixng,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
|
nixpkgs-jellyseerr,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
flake-utils.lib.eachDefaultSystem (system: let
|
flake-utils.lib.eachDefaultSystem (system: let
|
||||||
|
@ -11,13 +12,17 @@ flake-utils.lib.eachDefaultSystem (system: let
|
||||||
attic = ./attic.nix;
|
attic = ./attic.nix;
|
||||||
ntfy = ./ntfy.nix;
|
ntfy = ./ntfy.nix;
|
||||||
radicale = ./radicale.nix;
|
radicale = ./radicale.nix;
|
||||||
|
jellyseerr = ./jellyseerr.nix;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
nixngConfigurations = builtins.mapAttrs (name: configFile:
|
nixngConfigurations = builtins.mapAttrs (name: configFile:
|
||||||
nixng.nglib.makeSystem {
|
nixng.nglib.makeSystem {
|
||||||
inherit nixpkgs system;
|
inherit nixpkgs system;
|
||||||
name = "nixng-${name}";
|
name = "nixng-${name}";
|
||||||
specialArgs = {inherit (self) globals;};
|
specialArgs = {
|
||||||
|
inherit nixpkgs-jellyseerr;
|
||||||
|
inherit (self) globals;
|
||||||
|
};
|
||||||
config = import configFile;
|
config = import configFile;
|
||||||
})
|
})
|
||||||
images;
|
images;
|
||||||
|
|
14
nixng-configurations/jellyseerr.nix
Normal file
14
nixng-configurations/jellyseerr.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
system,
|
||||||
|
nixpkgs-jellyseerr,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
dinit.enable = true;
|
||||||
|
init.services.jellyseerr.shutdownOnExit = true;
|
||||||
|
|
||||||
|
services.jellyseerr = {
|
||||||
|
enable = true;
|
||||||
|
package = nixpkgs-jellyseerr.legacyPackages.${system}.jellyseerr;
|
||||||
|
configDir = "/app/config";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue