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
|
2022-12-30 11:00:32 +01:00
|
|
|
callPackage = pkgs.lib.callPackageWith (pkgs // customPkgs);
|
2022-04-19 23:21:55 +02:00
|
|
|
|
2022-12-30 11:00:32 +01:00
|
|
|
customPkgs = rec {
|
2023-01-15 08:36:16 +01:00
|
|
|
mkPostgresDB = callPackage ./postgresdb {};
|
2022-04-22 01:30:20 +02:00
|
|
|
|
2023-01-01 00:18:51 +01:00
|
|
|
mkHaproxyService = callPackage ./haproxy/unit.nix {inherit utils;};
|
2022-09-14 08:47:49 +02:00
|
|
|
|
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
|
|
|
|
2023-01-15 05:53:59 +01:00
|
|
|
mkNginxService = callPackage ./nginx/unit.nix {inherit utils;};
|
2022-09-29 08:37:24 +02:00
|
|
|
|
2023-01-15 06:51:11 +01:00
|
|
|
mkPHPFPMService = callPackage ./php-fpm/unit.nix {inherit utils;};
|
2022-09-10 08:15:03 +02:00
|
|
|
|
2023-01-15 03:00:37 +01:00
|
|
|
mkKeycloakService = callPackage ./keycloak/unit.nix {inherit utils;};
|
2023-02-12 06:28:00 +01:00
|
|
|
mkOauth2Proxy = callPackage ./oauth2-proxy/unit.nix {inherit utils;};
|
2022-10-09 08:52:41 +02:00
|
|
|
|
2022-12-18 06:38:22 +01:00
|
|
|
mkKeycloakHaproxyService = callPackage ./keycloak-haproxy/unit.nix {inherit utils;};
|
|
|
|
|
2023-01-15 05:53:59 +01:00
|
|
|
mkKeycloakCliService = callPackage ./keycloak-cli-config/unit.nix {inherit utils;};
|
2022-10-16 06:57:21 +02:00
|
|
|
|
2023-02-19 22:37:41 +01:00
|
|
|
keycloak = callPackage ./keycloak {inherit utils customPkgs;};
|
|
|
|
|
2023-01-17 06:39:20 +01:00
|
|
|
ttrss = callPackage ./ttrss {inherit utils customPkgs;};
|
2022-12-30 11:00:32 +01:00
|
|
|
vaultwarden = callPackage ./vaultwarden {inherit utils customPkgs;};
|
2022-04-19 23:21:55 +02:00
|
|
|
};
|
|
|
|
in
|
2022-12-30 11:00:32 +01:00
|
|
|
customPkgs
|