2022-04-19 23:21:55 +02:00
|
|
|
{ distribution ? null
|
|
|
|
, services ? null
|
|
|
|
, system ? builtins.currentSystem
|
|
|
|
, pkgs ? import <nixpkgs> { inherit system; }
|
2022-05-20 05:00:12 +02:00
|
|
|
, utils ? null
|
2022-04-19 23:21:55 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
callPackage = pkgs.lib.callPackageWith (pkgs // self);
|
|
|
|
|
2022-09-12 21:21:18 +02:00
|
|
|
self = rec {
|
2022-09-12 21:31:27 +02:00
|
|
|
PostgresDB = callPackage ./postgresdb {};
|
2022-04-22 01:30:20 +02:00
|
|
|
|
2022-09-14 08:47:49 +02:00
|
|
|
HaproxyConfig = callPackage ./haproxy/config.nix {inherit utils;};
|
|
|
|
HaproxyService = callPackage ./haproxy/unit.nix {inherit utils;};
|
|
|
|
mkHaproxySiteConfig = callPackage ./haproxy/siteconfig.nix {};
|
|
|
|
|
2022-09-09 08:26:33 +02:00
|
|
|
CaddyConfig = callPackage ./caddy/config.nix {inherit utils;};
|
|
|
|
CaddyService = callPackage ./caddy/unit.nix {inherit utils;};
|
|
|
|
CaddySiteConfig = callPackage ./caddy/siteconfig.nix {inherit utils;};
|
2022-09-12 21:21:18 +02:00
|
|
|
mkCaddySiteConfig = callPackage ./caddy/mksiteconfig.nix {inherit CaddySiteConfig;};
|
2022-09-09 08:26:33 +02:00
|
|
|
|
2022-09-15 05:46:14 +02:00
|
|
|
PHPConfig = callPackage ./php/config.nix {inherit utils;};
|
|
|
|
|
2022-09-12 21:31:27 +02:00
|
|
|
PHPFPMConfig = callPackage ./php-fpm/config.nix {inherit utils;};
|
|
|
|
PHPFPMService = callPackage ./php-fpm/unit.nix {inherit utils;};
|
|
|
|
PHPFPMSiteConfig = callPackage ./php-fpm/siteconfig.nix {inherit utils;};
|
|
|
|
mkPHPFPMSiteConfig = callPackage ./php-fpm/mksiteconfig.nix {inherit PHPFPMSiteConfig;};
|
2022-09-10 08:15:03 +02:00
|
|
|
|
2022-09-12 21:31:27 +02:00
|
|
|
TtrssEnvironment = callPackage ./ttrss/environment.nix {};
|
|
|
|
TtrssConfig = callPackage ./ttrss/config.nix {};
|
|
|
|
TtrssUpdateService = callPackage ./ttrss/update.nix {inherit utils;};
|
|
|
|
TtrssUpgradeDBService = callPackage ./ttrss/dbupgrade.nix {};
|
2022-09-15 05:46:14 +02:00
|
|
|
TtrssPHPNormalizeHeaders = callPackage ./ttrss/normalize-headers.nix {inherit utils;};
|
2022-04-19 23:21:55 +02:00
|
|
|
};
|
|
|
|
in
|
|
|
|
self
|