diff --git a/configs/telegram-bots/default.nix b/configs/telegram-bots/default.nix index e0a5431..3521eb4 100644 --- a/configs/telegram-bots/default.nix +++ b/configs/telegram-bots/default.nix @@ -57,7 +57,7 @@ in { wantedBy = ["multi-user.target"]; description = "Telegram reverse bot"; path = [pkgs.ffmpeg]; - enable = false; + enable = true; script = '' TELEGRAM_BOT_TOKEN="$(cat "$CREDENTIALS_DIRECTORY/token")" ${telebots}/bin/telegram-reverse ''; @@ -69,7 +69,7 @@ in { systemd.services.telegram-betacode = { wantedBy = ["multi-user.target"]; description = "Telegram beta code bot"; - enable = false; + enable = true; script = '' TELEGRAM_BOT_TOKEN="$(cat "$CREDENTIALS_DIRECTORY/token")" ${telebots}/bin/telegram-betacode ''; @@ -80,7 +80,7 @@ in { systemd.services.telegram-proverb = { wantedBy = ["multi-user.target"]; description = "Telegram proverb bot"; - enable = false; + enable = true; script = '' TELEGRAM_BOT_TOKEN="$(cat "$CREDENTIALS_DIRECTORY/token")" ${telebots}/bin/telegram-proverb ''; diff --git a/flake.lock b/flake.lock index 8a3839d..53e1e05 100644 --- a/flake.lock +++ b/flake.lock @@ -80,6 +80,24 @@ "type": "github" } }, + "flake-utils_2": { + "inputs": { + "systems": "systems_2" + }, + "locked": { + "lastModified": 1685518550, + "narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, "home-manager": { "inputs": { "nixpkgs": [ @@ -221,6 +239,22 @@ "type": "github" } }, + "nixpkgs_2": { + "locked": { + "lastModified": 1659446231, + "narHash": "sha256-hekabNdTdgR/iLsgce5TGWmfIDZ86qjPhxDg/8TlzhE=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "eabc38219184cc3e04a974fe31857d8e0eac098d", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-21.11", + "repo": "nixpkgs", + "type": "github" + } + }, "nur": { "locked": { "lastModified": 1684629675, @@ -361,14 +395,25 @@ "type": "github" } }, + "systems_2": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + }, "telebots": { "inputs": { - "flake-utils": [ - "flake-utils" - ], - "nixpkgs": [ - "nixpkgs-old" - ] + "flake-utils": "flake-utils_2", + "nixpkgs": "nixpkgs_2" }, "locked": { "lastModified": 1677156381, diff --git a/flake.nix b/flake.nix index ba86d8a..b1b5793 100644 --- a/flake.nix +++ b/flake.nix @@ -38,8 +38,6 @@ scripts.inputs.flake-utils.follows = "flake-utils"; scripts.inputs.nixpkgs.follows = "nixpkgs"; scripts.inputs.rust-overlay.follows = "rust-overlay"; - telebots.inputs.flake-utils.follows = "flake-utils"; - telebots.inputs.nixpkgs.follows = "nixpkgs-old"; tinc-graph.inputs.flake-utils.follows = "flake-utils"; tinc-graph.inputs.nixpkgs.follows = "nixpkgs"; tinc-graph.inputs.rust-overlay.follows = "rust-overlay";