X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fflorian%2Fapp.nix;h=4e5f7d412ff1617fcaacd80c4180e83eaded4d35;hb=ab8f306d7c2c49b8116e1af7b355ed2384617ed9;hp=5ce073a1c23320a8091ab88a508ae76851547f53;hpb=1594c8da6fbb4ffa09ab970fb887cea61c572f60;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/florian/app.nix b/modules/private/websites/florian/app.nix index 5ce073a..4e5f7d4 100644 --- a/modules/private/websites/florian/app.nix +++ b/modules/private/websites/florian/app.nix @@ -1,7 +1,7 @@ -{ lib, pkgs, config, myconfig, ... }: +{ lib, pkgs, config, ... }: let adminer = pkgs.callPackage ../commons/adminer.nix {}; - secrets = myconfig.env.websites.tellesflorian.integration; + secrets = config.myEnv.websites.tellesflorian.integration; app = pkgs.webapps.tellesflorian.override { environment = secrets.environment; }; cfg = config.myServices.websites.florian.app; pcfg = config.services.phpApplication; @@ -9,6 +9,7 @@ in { options.myServices.websites.florian.app.enable = lib.mkEnableOption "enable Florian's app in integration"; config = lib.mkIf cfg.enable { + services.duplyBackup.profiles.tellesflorian_dev.rootDir = app.varDir; services.phpApplication.apps.florian_dev = { websiteEnv = "integration"; httpdUser = config.services.httpd.Inte.user; @@ -41,7 +42,7 @@ in { { dest = "webapps/${app.environment}-tellesflorian-passwords"; user = config.services.httpd.Inte.user; - group = config.services.httpd.Inte.user; + group = config.services.httpd.Inte.group; permissions = "0400"; text = '' invite:${secrets.invite_passwords} @@ -50,14 +51,14 @@ in { { dest = "webapps/${app.environment}-tellesflorian"; user = config.services.httpd.Inte.user; - group = config.services.httpd.Inte.user; + group = config.services.httpd.Inte.group; permissions = "0400"; text = '' # This file is auto-generated during the composer install parameters: database_host: ${secrets.mysql.host} database_port: ${secrets.mysql.port} - database_name: ${secrets.mysql.name} + database_name: ${secrets.mysql.database} database_user: ${secrets.mysql.user} database_password: ${secrets.mysql.password} mailer_transport: smtp