Compare commits

...

2 Commits

Author SHA1 Message Date
nyanloutre 0d73bc4d69 Dogetipbot telegram 2018-06-28 20:52:31 +02:00
nyanloutre 56bb18a129 Installation nix-prefetch-scripts 2018-06-28 20:51:42 +02:00
3 changed files with 23 additions and 0 deletions

View 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; };
}

View File

@ -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
@ -58,6 +59,7 @@
tig tig
openssl openssl
lftp lftp
nix-prefetch-scripts
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View File

@ -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