2022-04-19 14:21:55 -07:00
|
|
|
{ distribution ? null
|
|
|
|
, services ? null
|
|
|
|
, system ? builtins.currentSystem
|
|
|
|
, pkgs ? import <nixpkgs> { inherit system; }
|
2022-05-19 20:00:12 -07:00
|
|
|
, utils ? null
|
2022-04-19 14:21:55 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2022-12-30 02:00:32 -08:00
|
|
|
callPackage = pkgs.lib.callPackageWith (pkgs // customPkgs);
|
2022-04-19 14:21:55 -07:00
|
|
|
|
2022-12-30 02:00:32 -08:00
|
|
|
customPkgs = rec {
|
2023-01-14 23:36:16 -08:00
|
|
|
mkPostgresDB = callPackage ./postgresdb {};
|
2022-04-21 16:30:20 -07:00
|
|
|
|
2022-12-31 15:18:51 -08:00
|
|
|
mkHaproxyService = callPackage ./haproxy/unit.nix {inherit utils;};
|
2022-09-13 23:47:49 -07:00
|
|
|
|
2022-09-08 23:26:33 -07: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 12:21:18 -07:00
|
|
|
mkCaddySiteConfig = callPackage ./caddy/mksiteconfig.nix {inherit CaddySiteConfig;};
|
2022-09-08 23:26:33 -07:00
|
|
|
|
2023-01-14 20:53:59 -08:00
|
|
|
mkNginxService = callPackage ./nginx/unit.nix {inherit utils;};
|
2022-09-28 23:37:24 -07:00
|
|
|
|
2023-01-14 21:51:11 -08:00
|
|
|
mkPHPFPMService = callPackage ./php-fpm/unit.nix {inherit utils;};
|
2022-09-09 23:15:03 -07:00
|
|
|
|
2023-01-14 18:00:37 -08:00
|
|
|
mkKeycloakService = callPackage ./keycloak/unit.nix {inherit utils;};
|
2023-02-11 21:28:00 -08:00
|
|
|
mkOauth2Proxy = callPackage ./oauth2-proxy/unit.nix {inherit utils;};
|
2022-10-08 23:52:41 -07:00
|
|
|
|
2022-12-17 21:38:22 -08:00
|
|
|
mkKeycloakHaproxyService = callPackage ./keycloak-haproxy/unit.nix {inherit utils;};
|
|
|
|
|
2023-01-14 20:53:59 -08:00
|
|
|
mkKeycloakCliService = callPackage ./keycloak-cli-config/unit.nix {inherit utils;};
|
2022-10-15 21:57:21 -07:00
|
|
|
|
2023-02-19 13:37:41 -08:00
|
|
|
keycloak = callPackage ./keycloak {inherit utils customPkgs;};
|
|
|
|
|
2023-01-16 21:39:20 -08:00
|
|
|
ttrss = callPackage ./ttrss {inherit utils customPkgs;};
|
2022-12-30 02:00:32 -08:00
|
|
|
vaultwarden = callPackage ./vaultwarden {inherit utils customPkgs;};
|
2022-04-19 14:21:55 -07:00
|
|
|
};
|
|
|
|
in
|
2022-12-30 02:00:32 -08:00
|
|
|
customPkgs
|