summary refs log tree commit diff
path: root/nixos/modules/services/web-apps/moodle.nix
diff options
context:
space:
mode:
authorvolth <volth@volth.com>2019-09-08 23:38:31 +0000
committervolth <volth@volth.com>2019-09-08 23:38:31 +0000
commit7b8fb5c06cc28a9ed2bbe605de44570ad6c8fecc (patch)
treeb533615a7e59e291dcff5793e00586dbf9d1417e /nixos/modules/services/web-apps/moodle.nix
parent4b929acf6739c1a60616f2a1edaf513b8e3dcc84 (diff)
downloadnixpkgs-7b8fb5c06cc28a9ed2bbe605de44570ad6c8fecc.tar
nixpkgs-7b8fb5c06cc28a9ed2bbe605de44570ad6c8fecc.tar.gz
nixpkgs-7b8fb5c06cc28a9ed2bbe605de44570ad6c8fecc.tar.bz2
nixpkgs-7b8fb5c06cc28a9ed2bbe605de44570ad6c8fecc.tar.lz
nixpkgs-7b8fb5c06cc28a9ed2bbe605de44570ad6c8fecc.tar.xz
nixpkgs-7b8fb5c06cc28a9ed2bbe605de44570ad6c8fecc.tar.zst
nixpkgs-7b8fb5c06cc28a9ed2bbe605de44570ad6c8fecc.zip
treewide: remove redundant quotes
Diffstat (limited to 'nixos/modules/services/web-apps/moodle.nix')
-rw-r--r--nixos/modules/services/web-apps/moodle.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/services/web-apps/moodle.nix b/nixos/modules/services/web-apps/moodle.nix
index f2516c67c6b..7f71b86a6fe 100644
--- a/nixos/modules/services/web-apps/moodle.nix
+++ b/nixos/modules/services/web-apps/moodle.nix
@@ -18,7 +18,7 @@ let
   global $CFG;
   $CFG = new stdClass();
 
-  $CFG->dbtype    = '${ { "mysql" = "mariadb"; "pgsql" = "pgsql"; }.${cfg.database.type} }';
+  $CFG->dbtype    = '${ { mysql = "mariadb"; pgsql = "pgsql"; }.${cfg.database.type} }';
   $CFG->dblibrary = 'native';
   $CFG->dbhost    = '${cfg.database.host}';
   $CFG->dbname    = '${cfg.database.name}';
@@ -92,8 +92,8 @@ in
         type = types.int;
         description = "Database host port.";
         default = {
-          "mysql" = 3306;
-          "pgsql" = 5432;
+          mysql = 3306;
+          pgsql = 5432;
         }.${cfg.database.type};
         defaultText = "3306";
       };
@@ -294,7 +294,7 @@ in
 
     systemd.services.httpd.after = optional mysqlLocal "mysql.service" ++ optional pgsqlLocal "postgresql.service";
 
-    users.users."${user}".group = group;
+    users.users.${user}.group = group;
 
   };
 }