forked from nyanloutre/nixos-config
Dogetipbot telegram
This commit is contained in:
parent
56bb18a129
commit
0d73bc4d69
9
overlays/dogetipbot-telegram.nix
Normal file
9
overlays/dogetipbot-telegram.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
self: super:
|
||||||
|
|
||||||
|
{
|
||||||
|
dogetipbot-telegram = super.callPackage (super.fetchgit {
|
||||||
|
url = "https://gitlab.com/nyanloutre/dogetipbot-telegram.git";
|
||||||
|
rev = "ebf12e00a4dccf1621b695ecbdb0753f1e3f6052";
|
||||||
|
sha256 = "04xkp6djq8h3sdh8q9bs1ii0x1hbqb0icnsni7kp7wrr1w910dni";
|
||||||
|
}) { pkgs = self; };
|
||||||
|
}
|
@ -45,6 +45,7 @@
|
|||||||
(import ../../overlays/site-max.nix)
|
(import ../../overlays/site-max.nix)
|
||||||
(import ../../overlays/site-musique.nix)
|
(import ../../overlays/site-musique.nix)
|
||||||
(import ../../overlays/vsftpd.nix)
|
(import ../../overlays/vsftpd.nix)
|
||||||
|
(import ../../overlays/dogetipbot-telegram.nix)
|
||||||
];
|
];
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
neovim
|
neovim
|
||||||
|
@ -281,6 +281,18 @@ in
|
|||||||
services.site-max.port = max_port;
|
services.site-max.port = max_port;
|
||||||
services.site-max.domaine = "maxspiegel.fr";
|
services.site-max.domaine = "maxspiegel.fr";
|
||||||
|
|
||||||
|
systemd.services.dogetipbot-telegram = {
|
||||||
|
after = [ "network.target" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
script = "${pkgs.dogetipbot-telegram}/bin/dogetipbot-telegram --block-io-api-key $BLOCK_IO_API_KEY --block-io-pin $BLOCK_IO_PIN --telegram-api-key $TELEGRAM_API_KEY --network DOGE";
|
||||||
|
enable = true;
|
||||||
|
serviceConfig = {
|
||||||
|
EnvironmentFile = "/var/dogetipbot-telegram/env";
|
||||||
|
User = "nobody";
|
||||||
|
Group = "nogroup";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
111 2049 4000 4001 4002 # NFS
|
111 2049 4000 4001 4002 # NFS
|
||||||
3483 9000 9090 # Slimserver
|
3483 9000 9090 # Slimserver
|
||||||
|
Loading…
Reference in New Issue
Block a user