From 586a27b1a27608a333b159eeb3ffa1600c650d20 Mon Sep 17 00:00:00 2001 From: uakci Date: Mon, 19 Aug 2024 00:48:52 +0200 Subject: add links to each entry --- module.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'module.nix') diff --git a/module.nix b/module.nix index f1435c4..5b6f960 100644 --- a/module.nix +++ b/module.nix @@ -3,21 +3,22 @@ let cfg = config.services.nuogai; in with lib; { options.services.nuogai = { enable = mkEnableOption "Enables the nuogaı Discord Bot"; - toaduaHost = mkOption { type = types.str; }; + hostInternal = mkOption { type = types.str; }; + hostExternal = mkOption { type = types.str; }; zugaiHost = mkOption { type = types.str; }; tokenPath = mkOption { type = types.path; }; }; config = { fonts.fonts = optionals cfg.enable [ self.packages.${system}.toaqScript ]; - services.nuogai.zugaiHost = lib.mkDefault "https://zugai.toaq.me"; systemd.services.nuogai = { inherit (cfg) enable; description = "Toaq Discord bot"; wantedBy = [ "multi-user.target" ]; wants = [ "network-online.target" ]; - environment = { - TOADUA_HOST = cfg.toaduaHost; - ZUGAI_HOST = cfg.zugaiHost; + environment = with cfg; { + TOADUA_HOST_INTERNAL = hostInternal; + TOADUA_HOST_EXTERNAL = hostExternal; + ZUGAI_HOST = zugaiHost; }; script = '' export NUOGAI_TOKEN=$(cat ${cfg.tokenPath}) -- cgit v1.2.3