Run Jellyseerr in NixNG container
This commit is contained in:
parent
708e6b4336
commit
49ecab9603
6 changed files with 44 additions and 6 deletions
|
@ -3,6 +3,7 @@
|
|||
flake-utils,
|
||||
nixng,
|
||||
nixpkgs,
|
||||
nixpkgs-jellyseerr,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
|
@ -11,13 +12,17 @@ flake-utils.lib.eachDefaultSystem (system: let
|
|||
attic = ./attic.nix;
|
||||
ntfy = ./ntfy.nix;
|
||||
radicale = ./radicale.nix;
|
||||
jellyseerr = ./jellyseerr.nix;
|
||||
};
|
||||
in {
|
||||
nixngConfigurations = builtins.mapAttrs (name: configFile:
|
||||
nixng.nglib.makeSystem {
|
||||
inherit nixpkgs system;
|
||||
name = "nixng-${name}";
|
||||
specialArgs = {inherit (self) globals;};
|
||||
specialArgs = {
|
||||
inherit nixpkgs-jellyseerr;
|
||||
inherit (self) globals;
|
||||
};
|
||||
config = import configFile;
|
||||
})
|
||||
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…
Add table
Add a link
Reference in a new issue