host/canigou: add yagpt telegram bot service

This commit is contained in:
Dmitriy Pleshevskiy 2023-06-29 00:54:46 +03:00
parent ecd94b7078
commit 7721a89e13
Signed by: pleshevskiy
GPG Key ID: 79C4487B44403985
8 changed files with 52 additions and 2 deletions

Binary file not shown.

View File

@ -3,7 +3,8 @@ NIX_LOCK := nix flake lock
DEPS_MY := \
myneovim \
vnetod
vnetod \
yagpt_ts_bot
DEPS_NIXOS := \
nixpkgs \

View File

@ -672,7 +672,8 @@
"nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable",
"vnetod": "vnetod",
"wired": "wired"
"wired": "wired",
"yagpt_tg_bot": "yagpt_tg_bot"
}
},
"rust-overlay": {
@ -823,6 +824,29 @@
"repo": "wired-notify",
"type": "github"
}
},
"yagpt_tg_bot": {
"inputs": {
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1687989096,
"narHash": "sha256-BwQ3tx3aXcOg0QzAdBgloINwzlz9EZsB2DePVlOHGEs=",
"ref": "refs/heads/main",
"rev": "d96a2d8416f29f122650b198b8c0ea1a7b2a71e7",
"revCount": 3,
"type": "git",
"url": "https://git.pleshevski.ru/pleshevskiy/yandexgpt_tg_bot"
},
"original": {
"type": "git",
"url": "https://git.pleshevski.ru/pleshevskiy/yandexgpt_tg_bot"
}
}
},
"root": "root",

View File

@ -41,6 +41,12 @@
inputs.flake-utils.follows = "flake-utils";
};
yagpt_tg_bot = {
url = "git+https://git.pleshevski.ru/pleshevskiy/yandexgpt_tg_bot";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
mailserver = {
url = "gitlab:simple-nixos-mailserver/nixos-mailserver";
inputs.nixpkgs.follows = "nixpkgs";

View File

@ -16,6 +16,7 @@ in
./services/wireguard.nix
./services/miniflux.nix
./services/telegram-bot.nix
];
boot.kernelPackages = pkgs.linuxPackages_6_1;

View File

@ -0,0 +1,12 @@
{ config, ... }:
{
services.yandexgpt_telegram_bot = {
enabled = true;
environmentFile = config.age.secrets.yandexgpt-tg-bot-env.path;
};
age.secrets.yandexgpt-tg-bot-env = {
file = ../../../../secrets/yandexgpt-tg-bot-env.age;
};
}

View File

@ -2,6 +2,7 @@
let
hardware = inputs.hardware.nixosModules;
yagpt_tg_bot = inputs.yagpt_tg_bot.nixosModules;
in
{
home = {
@ -9,6 +10,7 @@ in
extraModules = [
hardware.common-gpu-amd
yagpt_tg_bot.default
../modules/nix.nix
../modules/wireguard-client.nix
../../home/users/jan
@ -52,6 +54,10 @@ in
canigou = {
system = "x86_64-linux";
extraModules = [
yagpt_tg_bot.default
];
targetHost = (import ./canigou/data.secret.nix).addr;
};
}

Binary file not shown.