diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 01:35:06 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2023-10-04 02:11:48 +0200 |
commit | 1a64deeb894dc95e2645a75771732c6cc53a79ad (patch) | |
tree | 1b9df4838f894577a09b9b260151756272efeb53 /modules/private/websites/florian/app/default.nix | |
parent | fa25ffd4583cc362075cd5e1b4130f33306103f0 (diff) | |
download | Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.gz Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.tar.zst Nix-1a64deeb894dc95e2645a75771732c6cc53a79ad.zip |
Squash changes containing private information
There were a lot of changes since the previous commit, but a lot of them
contained personnal information about users. All thos changes got
stashed into a single commit (history is kept in a different place) and
private information was moved in a separate private repository
Diffstat (limited to 'modules/private/websites/florian/app/default.nix')
-rw-r--r-- | modules/private/websites/florian/app/default.nix | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/modules/private/websites/florian/app/default.nix b/modules/private/websites/florian/app/default.nix deleted file mode 100644 index 28a7ec1..0000000 --- a/modules/private/websites/florian/app/default.nix +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | { environment, varDir, secretsPath | ||
2 | , composerEnv, fetchurl, sources }: | ||
3 | let | ||
4 | app = composerEnv.buildPackage ( | ||
5 | import ./php-packages.nix { inherit composerEnv fetchurl; } // | ||
6 | rec { | ||
7 | version = sources.websites-florian-app.version; | ||
8 | pname = "tellesflorian"; | ||
9 | name = "${pname}-${version}"; | ||
10 | src = sources.websites-florian-app; | ||
11 | noDev = (environment == "prod"); | ||
12 | preInstall = '' | ||
13 | export SYMFONY_ENV="${environment}" | ||
14 | ''; | ||
15 | postInstall = '' | ||
16 | cd $out | ||
17 | rm app/config/parameters.yml | ||
18 | ln -sf ${secretsPath} app/config/parameters.yml | ||
19 | rm -rf var/{logs,cache} | ||
20 | ln -sf ${varDir}/var/{logs,cache,sessions} var/ | ||
21 | ''; | ||
22 | passthru = { | ||
23 | inherit varDir environment; | ||
24 | webRoot = "${app}/web"; | ||
25 | }; | ||
26 | }); | ||
27 | in app | ||