Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
feat(nixos): added audioDir option
Browse files Browse the repository at this point in the history
AudioDir - path to audio directory, that bot use in /spock command
  • Loading branch information
Wittano committed Aug 22, 2024
1 parent ac2dd37 commit 0759396
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nixos.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ in
type = types.path;
description = "Connection URI to your instance of mongodb";
};
audioDir = mkOption {
type = types.path;
description = "Path to audio assets dictionary";
};
};
};

Expand All @@ -46,11 +50,12 @@ in
systemd.services.komputer = {
description = "Komputer - Discord bot behave as like 'komputer'. One of character in Star Track parody series created by Dem3000";
wantedBy = [ "multi-user.target" ];
path = cfg.package.propagatedBuildInputs or [ ];
path = with pkgs; [ ffmpeg opusfile ];
environment = {
DISCORD_BOT_TOKEN_PATH = cfg.tokenSecretPath;
APPLICATION_ID_PATH = cfg.applicationIDSecretPath;
MONGODB_URI_PATH = cfg.mongodbURISecretPath;
ASSETS_DIR = cfg.audioDir;
};
script = "${cfg.package}/bin/komputer";
};
Expand Down

0 comments on commit 0759396

Please sign in to comment.