Remove unnecessary module from glauth module

This commit is contained in:
kat witch 2021-09-05 16:09:22 +01:00
parent 9d01dca869
commit 250399c2b7
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 2 additions and 7 deletions

View file

@ -9,15 +9,10 @@ in
type = types.package;
default = pkgs.glauth;
};
outTOML = mkOption {
description = "The TOML produced from cfg.settings";
type = types.str;
default = toTOML cfg.settings;
};
configFile = mkOption {
description = "The config path that GLAuth uses";
type = types.path;
default = pkgs.writeText "glauth-config" cfg.outTOML;
default = pkgs.writeText "glauth-config" toTOML cfg.settings;
};
database = {
enable = mkEnableOption "use a database";

View file

@ -63,7 +63,7 @@
group = "glauth";
};
glauth-config-file = {
text = config.services.glauth.outTOML;
text = toTOML config.services.glauth.settings;
owner = "glauth";
group = "glauth";
};