zaphyra's git: things

simple inventory management web-app

commit 5aa1fd6a6bfa2d86e5a337686a701c6b220fc956
parent de0895ebc6b567efb21eab14a167820381489cc4
Author: Katja (zaphyra) <git@ctu.cx>
Date: Tue, 27 May 2025 15:33:44 +0200

nixosModule: rename to `things`
1 file changed, 8 insertions(+), 8 deletions(-)
M
nixosModule.nix
|
16
++++++++--------
diff --git a/nixosModule.nix b/nixosModule.nix
@@ -3,13 +3,13 @@
 with lib;
 
 let
-  cfg = config.services.ctucx-things;
+  cfg = config.services.things;
 
 in {
 
   options = {
-    services.ctucx-things = with lib; {
-      enable = mkEnableOption "ctucx-things - simple inventory management web-app";
+    services.things = with lib; {
+      enable = mkEnableOption "things - simple inventory management web-app";
 
       nginx = {
         enable     = mkEnableOption "";

@@ -22,17 +22,17 @@ in {
 
       package = mkOption {
         type    = types.package;
-        default = pkgs.ctucx-things;
+        default = pkgs.things;
       };
 
       user = mkOption {
         type    = types.str;
-        default = "ctucx-things";
+        default = "things";
       };
 
       group = mkOption {
         type    = types.str;
-        default = "ctucx-things";
+        default = "things";
       };
 
       storagePath = mkOption {

@@ -54,7 +54,7 @@ in {
       group = cfg.group;
     };
 
-    services.phpfpm.pools.ctucx-things  = {
+    services.phpfpm.pools.things  = {
       user  = cfg.user;
       group = cfg.group;
       phpEnv = {

@@ -80,7 +80,7 @@ in {
           "/".index              = "index.php";
           "/".tryFiles           = "$uri $uri/ /index.php";
           "~ \.php$".extraConfig = ''
-            fastcgi_pass  unix:${config.services.phpfpm.pools.ctucx-things.socket};
+            fastcgi_pass  unix:${config.services.phpfpm.pools.things.socket};
             fastcgi_index index.php;
           '';
         };