host/canigou: add yagpt telegram bot service
This commit is contained in:
parent
ecd94b7078
commit
7721a89e13
8 changed files with 52 additions and 2 deletions
Binary file not shown.
3
Makefile
3
Makefile
|
@ -3,7 +3,8 @@ NIX_LOCK := nix flake lock
|
|||
|
||||
DEPS_MY := \
|
||||
myneovim \
|
||||
vnetod
|
||||
vnetod \
|
||||
yagpt_ts_bot
|
||||
|
||||
DEPS_NIXOS := \
|
||||
nixpkgs \
|
||||
|
|
26
flake.lock
26
flake.lock
|
@ -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",
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -16,6 +16,7 @@ in
|
|||
|
||||
./services/wireguard.nix
|
||||
./services/miniflux.nix
|
||||
./services/telegram-bot.nix
|
||||
];
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_6_1;
|
||||
|
|
12
nixos/hosts/canigou/services/telegram-bot.nix
Normal file
12
nixos/hosts/canigou/services/telegram-bot.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
BIN
secrets/yandexgpt-tg-bot-env.age
Normal file
BIN
secrets/yandexgpt-tg-bot-env.age
Normal file
Binary file not shown.
Loading…
Reference in a new issue