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

lastFile:modules/nixos/think-gtcm.nix
This commit is contained in:
2025-11-20 15:26:14 +07:00
parent 1a78f721e6
commit b0de95fd28
4 changed files with 8 additions and 6 deletions

View File

@@ -3,5 +3,8 @@
common = { common = {
imports = [ ./common.nix ]; imports = [ ./common.nix ];
}; };
think-gtcm = {
imports = [ ./think-gtcm.nix ];
};
}; };
} }

View File

@@ -218,7 +218,7 @@ in
services.nginx = { services.nginx = {
enable = true; enable = true;
virtualHosts."${cfg.domain}" = { virtualHosts."${cfg.domain}" = {
root = "${cfg.stateDir}/public"; root = "${cfg.package}/public";
locations."~ \\.php$".extraConfig = '' locations."~ \\.php$".extraConfig = ''
fastcgi_pass unix:${config.services.phpfpm.pools.think-greaterchiangmai.socket}; fastcgi_pass unix:${config.services.phpfpm.pools.think-greaterchiangmai.socket};
fastcgi_index site.php; fastcgi_index site.php;

View File

@@ -1,13 +1,12 @@
{ ... }: { self, ... }:
{ {
perSystem = perSystem =
{ pkgs, self', ... }: { pkgs, ... }:
{ {
checks = checks =
let let
checkArgs = { checkArgs = {
inherit pkgs; inherit pkgs self;
self = self';
}; };
in in
{ {

View File

@@ -5,7 +5,7 @@
node1 = node1 =
{ self, pkgs, ... }: { self, pkgs, ... }:
{ {
imports = [ ]; imports = [ self.nixosModules.think-gtcm ];
services.think-greaterchiangmai = { services.think-greaterchiangmai = {
enable = true; enable = true;
}; };