summary refs log tree commit diff
path: root/nixos/modules/services/audio/jmusicbot.nix
diff options
context:
space:
mode:
authorJakob Klepp <jakob-nixos@truh.in>2022-02-11 00:08:58 +0100
committerJakob Klepp <jakob-nixos@truh.in>2022-02-16 00:43:57 +0100
commitf28d9be832d63b79f5f73b0583f2601a791c88b6 (patch)
tree3f3bc014307cffee585612a7a2dec194961c9984 /nixos/modules/services/audio/jmusicbot.nix
parent285866883751b3377f0db0e2d7dee57338c21c35 (diff)
downloadnixpkgs-f28d9be832d63b79f5f73b0583f2601a791c88b6.tar
nixpkgs-f28d9be832d63b79f5f73b0583f2601a791c88b6.tar.gz
nixpkgs-f28d9be832d63b79f5f73b0583f2601a791c88b6.tar.bz2
nixpkgs-f28d9be832d63b79f5f73b0583f2601a791c88b6.tar.lz
nixpkgs-f28d9be832d63b79f5f73b0583f2601a791c88b6.tar.xz
nixpkgs-f28d9be832d63b79f5f73b0583f2601a791c88b6.tar.zst
nixpkgs-f28d9be832d63b79f5f73b0583f2601a791c88b6.zip
nixos/jmusicbot: add option services.jmusicbot.package
Diffstat (limited to 'nixos/modules/services/audio/jmusicbot.nix')
-rw-r--r--nixos/modules/services/audio/jmusicbot.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/nixos/modules/services/audio/jmusicbot.nix b/nixos/modules/services/audio/jmusicbot.nix
index f573bd2ab8d..e0f8d461af0 100644
--- a/nixos/modules/services/audio/jmusicbot.nix
+++ b/nixos/modules/services/audio/jmusicbot.nix
@@ -9,6 +9,13 @@ in
     services.jmusicbot = {
       enable = mkEnableOption "jmusicbot, a Discord music bot that's easy to set up and run yourself";
 
+      package = mkOption {
+        type = types.package;
+        default = pkgs.jmusicbot;
+        defaultText = literalExpression "pkgs.jmusicbot";
+        description = "JMusicBot package to use";
+      };
+
       stateDir = mkOption {
         type = types.path;
         description = ''
@@ -27,7 +34,7 @@ in
       after = [ "network-online.target" ];
       description = "Discord music bot that's easy to set up and run yourself!";
       serviceConfig = mkMerge [{
-        ExecStart = "${pkgs.jmusicbot}/bin/JMusicBot";
+        ExecStart = "${cfg.package}/bin/JMusicBot";
         WorkingDirectory = cfg.stateDir;
         Restart = "always";
         RestartSec = 20;