services/glauth: typo fixes

This commit is contained in:
kat witch 2021-09-04 23:05:09 +01:00
parent 97b48b9701
commit 74cc1b074b
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
3 changed files with 10 additions and 9 deletions

View file

@ -1,6 +1,6 @@
{ config, pkgs, lib, ... }: with lib; let
cfg = options.services.glauth;
dbcfg = options.services.glauth.database;
cfg = config.services.glauth;
dbcfg = config.services.glauth.database;
in
{
options.services.glauth = {
@ -9,12 +9,12 @@ in
type = types.package;
default = pkgs.glauth;
};
outTOML = {
outTOML = mkOption {
description = "The TOML produced from cfg.settings";
type = type.str;
type = types.str;
default = toTOML cfg.settings;
};
configFile = {
configFile = mkOption {
description = "The config path that GLAuth uses";
type = types.path;
default = pkgs.writeText "glauth-config" cfg.outTOML;
@ -63,7 +63,7 @@ in
datastore = "plugin";
plugin = "bin/${cfg.database.type}.so";
pluginhandler = pluginHandlers.${dbcfg.type};
database = if dbcfg.type != "sqlite" then (builtins.replaceStrings (singleton "\n") (singleton " ") ''
database = if (dbcfg.type != "sqlite") then (builtins.replaceStrings (singleton "\n") (singleton " ") ''
host=${dbcfg.host}
port=${dbcfg.port}
dbname=glauth