mob next [ci-skip] [ci skip] [skip ci]
lastFile:machines/ramus/think-greater-chiangmai.nix
This commit is contained in:
@@ -1,8 +1,33 @@
|
|||||||
{ self, ... }:
|
{ self, ... }:
|
||||||
|
let
|
||||||
|
commonSettings = {
|
||||||
|
DB_CONNECTION = "mysql";
|
||||||
|
DB_HOST = "localhost";
|
||||||
|
DB_PORT = 3306;
|
||||||
|
DB_DATABASE = "thinkgtcm";
|
||||||
|
DB_USERNAME = "gtcm";
|
||||||
|
};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
self.nixosModules.think-gtcm
|
self.nixosModules.think-gtcm
|
||||||
self.nixosModules.think-backend-gtcm
|
self.nixosModules.think-backend-gtcm
|
||||||
];
|
];
|
||||||
nixpkgs.overlays = [ self.overlays.packagesOverlay ];
|
nixpkgs.overlays = [ self.overlays.packagesOverlay ];
|
||||||
|
|
||||||
|
services.think-greaterchiangmai = {
|
||||||
|
enable = true;
|
||||||
|
domain = "think.greaterchiangmai.com";
|
||||||
|
settings = {
|
||||||
|
|
||||||
|
}
|
||||||
|
// commonSettings;
|
||||||
|
};
|
||||||
|
services.think-backend-greaterchiangmai = {
|
||||||
|
enable = true;
|
||||||
|
domain = "think-backend.greaterchiangmai.com";
|
||||||
|
settings = {
|
||||||
|
}
|
||||||
|
// commonSettings;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,13 +62,6 @@ in
|
|||||||
description = "Domain to serve on.";
|
description = "Domain to serve on.";
|
||||||
};
|
};
|
||||||
|
|
||||||
backendDomain = lib.mkOption {
|
|
||||||
type = lib.types.str;
|
|
||||||
default = "think-backend.greaterchiangmai.com";
|
|
||||||
example = "forum.example.com";
|
|
||||||
description = "Backend Domain to serve on.";
|
|
||||||
};
|
|
||||||
|
|
||||||
settings = lib.mkOption {
|
settings = lib.mkOption {
|
||||||
type =
|
type =
|
||||||
with lib.types;
|
with lib.types;
|
||||||
|
|||||||
Reference in New Issue
Block a user