Add first customer project with older php to hikari

This commit is contained in:
Daniel Siepmann 2023-02-07 17:50:31 +01:00
parent 55974567d9
commit 6a82009b4e
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
4 changed files with 28 additions and 3 deletions

View file

@ -6,7 +6,7 @@
let
php = phps.packages.x86_64-linux.php73;
composer = pkgs.php81Packages.composer;
inherit (pkgs.php81Packages) composer;
phpWithMoreMemory = php.buildEnv {
extraConfig = ''
@ -91,7 +91,7 @@ in pkgs.mkShell {
TYPO3_DATABASE = "reuter_reuter";
TYPO3_BASE = "https://monorepo.emoto2.localhost/reuter/";
BASE_URL = "https://monorepo.emoto2.localhost/reuter/";
TYPO3_ADDITIONAL_CONFIGURATION = "/home/daniels/.local/share/typo3-configuration/AdditionalConfiguration.inc.php";
TYPO3_ADDITIONAL_CONFIGURATION = "/var/projects/own/typo3-configuration/AdditionalConfiguration.inc.php";
shellHook = ''
export PROJECT_ROOT="$(pwd)"

View file

@ -17,11 +17,16 @@ Update to nixpkgs unstable via:
See: https://nixos.wiki/wiki/Nix_channels
I also need older php versions:
nix-channel --add https://github.com/fossar/nix-phps/archive/master.tar.gz phps
nix-channel --update
Ad hardware channel:
nix-channel --add https://github.com/NixOS/nixos-hardware/archive/master.tar.gz nixos-hardware
nix-channel --update
See: https://github.com/NixOS/nixos-hardware
TODOs

View file

@ -11,6 +11,8 @@
./domains/daniel-siepmann.localhost.nix
./domains/monorepo.reuter.localhost.nix
];
options = {
@ -67,6 +69,7 @@
ensurePermissions = {
# TODO: Auto build from defined databases?!
"own_danielsiepmann.*" = "ALL PRIVILEGES";
"reuter_reuter.*" = "ALL PRIVILEGES";
};
}
];

View file

@ -0,0 +1,17 @@
{
pkgs
,lib
,config
, ...
}:
let
phps = import <phps>;
in import ./../lib/create-typo3.nix {
inherit config lib pkgs;
domain = "monorepo.reuter.localhost";
relativeDocumentRoot = "company/customers/reuter/monorepo";
databaseName = "reuter_reuter";
phpPackage = phps.packages.x86_64-linux.php73;
}