mob next [ci-skip] [ci skip] [skip ci]

lastFile:machines/ramus/think-greater-chiangmai.nix
This commit is contained in:
2025-11-27 14:38:00 +07:00
parent 6af36b19f3
commit 4c7c63b49a
4 changed files with 18 additions and 10 deletions

View File

@@ -51,7 +51,11 @@ in
clan.core.vars.generators.greaterchiangmai = { clan.core.vars.generators.greaterchiangmai = {
files = { files = {
app_key.secret = true; app_key = {
secret = true;
owner = config.services.think-greaterchiangmai.user;
group = config.services.think-greaterchiangmai.group;
};
}; };
prompts = { prompts = {
@@ -66,7 +70,11 @@ in
clan.core.vars.generators.greaterchiangmai-s3 = { clan.core.vars.generators.greaterchiangmai-s3 = {
files = { files = {
access_key_id.secret = false; access_key_id.secret = false;
secret_access_key.secret = true; secret_access_key = {
secret = true;
owner = config.services.think-greaterchiangmai.user;
group = config.services.think-greaterchiangmai.group;
};
endpoint.secret = false; endpoint.secret = false;
region.secret = false; region.secret = false;
bucket.secret = false; bucket.secret = false;
@@ -91,7 +99,7 @@ in
services.think-greaterchiangmai = { services.think-greaterchiangmai = {
enable = true; enable = true;
domain = "think.greaterchiangmai.com"; domain = "think.wegetthingsmade.com";
settings = { settings = {
APP_SERVICES_CACHE = "/run/think-gtcm/cache/services.php"; APP_SERVICES_CACHE = "/run/think-gtcm/cache/services.php";
APP_PACKAGES_CACHE = "/run/think-gtcm/cache/packages.php"; APP_PACKAGES_CACHE = "/run/think-gtcm/cache/packages.php";
@@ -103,7 +111,7 @@ in
}; };
services.think-backend-greaterchiangmai = { services.think-backend-greaterchiangmai = {
enable = true; enable = true;
domain = "think-backend.greaterchiangmai.com"; domain = "think-backend.wegetthingsmade.com";
settings = { settings = {
APP_SERVICES_CACHE = "/run/think-backend-gtcm/cache/services.php"; APP_SERVICES_CACHE = "/run/think-backend-gtcm/cache/services.php";
APP_PACKAGES_CACHE = "/run/think-backend-gtcm/cache/packages.php"; APP_PACKAGES_CACHE = "/run/think-backend-gtcm/cache/packages.php";

View File

@@ -75,7 +75,7 @@ in
]) ])
(submodule { (submodule {
options = { options = {
_secret = mkOption { _secret = lib.mkOption {
type = nullOr str; type = nullOr str;
description = '' description = ''
The path to a file containing the value the The path to a file containing the value the
@@ -115,7 +115,7 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
users.users.${cfg.user} = { users.users.${cfg.user} = lib.mkForce {
isSystemUser = true; isSystemUser = true;
home = cfg.dataDir; home = cfg.dataDir;
createHome = true; createHome = true;
@@ -270,7 +270,7 @@ in
services.mysql = { services.mysql = {
enable = true; enable = true;
package = pkgs.mariadb; package = lib.mkForce pkgs.mariadb;
ensureDatabases = [ cfg.settings.DB_DATABASE ]; ensureDatabases = [ cfg.settings.DB_DATABASE ];
ensureUsers = [ ensureUsers = [
{ {

View File

@@ -77,7 +77,7 @@ in
]) ])
(submodule { (submodule {
options = { options = {
_secret = mkOption { _secret = lib.mkOption {
type = nullOr str; type = nullOr str;
description = '' description = ''
The path to a file containing the value the The path to a file containing the value the

View File

@@ -55,7 +55,7 @@
in in
{ {
gtcm1 = gtcm1 =
{ self, pkgs, ... }: { self, ... }:
{ {
nixpkgs.overlays = [ self.overlays.packagesOverlay ]; nixpkgs.overlays = [ self.overlays.packagesOverlay ];
imports = [ self.nixosModules.think-gtcm ]; imports = [ self.nixosModules.think-gtcm ];
@@ -71,7 +71,7 @@
}; };
}; };
backend1 = backend1 =
{ self, pkgs, ... }: { self, ... }:
{ {
nixpkgs.overlays = [ self.overlays.packagesOverlay ]; nixpkgs.overlays = [ self.overlays.packagesOverlay ];
imports = [ self.nixosModules.think-backend-gtcm ]; imports = [ self.nixosModules.think-backend-gtcm ];