30 lines
1.1 KiB
Nix
30 lines
1.1 KiB
Nix
{ distribution ? null
|
|
, services ? null
|
|
, system ? builtins.currentSystem
|
|
, pkgs ? import <nixpkgs> { inherit system; }
|
|
, utils ? null
|
|
}:
|
|
|
|
let
|
|
callPackage = pkgs.lib.callPackageWith (pkgs // self);
|
|
|
|
self = rec {
|
|
PostgresDB = callPackage ./PostgresDB {};
|
|
|
|
CaddyConfig = callPackage ./caddy/config.nix {inherit utils;};
|
|
CaddyService = callPackage ./caddy/unit.nix {inherit utils;};
|
|
CaddySiteConfig = callPackage ./caddy/siteconfig.nix {inherit utils;};
|
|
mkCaddySiteConfig = callPackage ./caddy/mksiteconfig.nix {inherit CaddySiteConfig;};
|
|
|
|
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;};
|
|
|
|
TtrssEnvironment = callPackage ./Ttrss/environment.nix {};
|
|
TtrssConfig = callPackage ./Ttrss/config.nix {};
|
|
TtrssUpdateService = callPackage ./Ttrss/update.nix {inherit utils;};
|
|
TtrssUpgradeDBService = callPackage ./Ttrss/dbupgrade.nix {};
|
|
};
|
|
in
|
|
self
|