diff --git a/config/modules/nixos/glauth.nix b/config/modules/nixos/glauth.nix index 7ebf2fe7..8bc1577d 100644 --- a/config/modules/nixos/glauth.nix +++ b/config/modules/nixos/glauth.nix @@ -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"; diff --git a/config/services/glauth/default.nix b/config/services/glauth/default.nix index 7c88e118..175ea0b8 100644 --- a/config/services/glauth/default.nix +++ b/config/services/glauth/default.nix @@ -63,7 +63,7 @@ group = "glauth"; }; glauth-config-file = { - text = config.services.glauth.outTOML; + text = toTOML config.services.glauth.settings; owner = "glauth"; group = "glauth"; };