71 lines
1.7 KiB
Nix
71 lines
1.7 KiB
Nix
{
|
|
description = "Healthchecks";
|
|
|
|
inputs = {
|
|
nixpkgs = {
|
|
url = "nixpkgs/nixos-22.11";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs }@inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
overlays = [
|
|
(
|
|
self: super: {
|
|
# sonarr = super.sonarr.overrideAttrs (
|
|
# old:
|
|
# let
|
|
# version = "3.0.10.1567";
|
|
# sha256 = "sha256-6zdp/Bg+9pcrElW5neB+BC16Vn1VhTjhMRRIxGrKhxc=";
|
|
# in
|
|
# {
|
|
# inherit version;
|
|
# src = pkgs.fetchurl {
|
|
# url = "https://download.sonarr.tv/v3/main/${version}/Sonarr.main.${version}.linux.tar.gz";
|
|
# sha256 = sha256;
|
|
# };
|
|
# }
|
|
# );
|
|
}
|
|
)
|
|
];
|
|
};
|
|
|
|
in
|
|
{
|
|
packages.${system}.smtpd = pkgs.dockerTools.buildLayeredImage
|
|
{
|
|
name = "healthchecks-smtpd";
|
|
tag = "latest";
|
|
maxLayers = 2;
|
|
copyToRoot = pkgs.buildEnv {
|
|
name = "image-root";
|
|
pathsToLink = [ "/" ];
|
|
paths = [
|
|
pkgs.healthchecks
|
|
];
|
|
};
|
|
config = {
|
|
Cmd = [
|
|
"${pkgs.sonarr}/bin/NzbDrone"
|
|
"-nobrowser"
|
|
"-data=/config"
|
|
];
|
|
User = "5000:5000";
|
|
ExposedPorts = {
|
|
"8989/tcp" = { };
|
|
};
|
|
Volumes = {
|
|
"/config" = { };
|
|
};
|
|
Env = [
|
|
"LANG=en_US.UTF-8"
|
|
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|