chronocat.nix 若有侵权,请联系我删除
# VNC 端口 7081
# OneBot HTTP 端口 3000
docker run -p 3000:3000 -p 7081:7081 --privileged initialencounter/llonebot:latest
# flake.nix
{
inputs = {
llonebot.url = "github:LLOneBot/llonebot.nix";
};
outputs = { self, llonebot, ... }: {
packages.default = llonebot.lib.buildLLOneBot ./configuration.nix;
};
}
# configuration.nix
{ config, lib, pkgs, ... }:
{
programs.llonebot = {
port = 8080; # 设置 VNC 端口
vncpasswd = "your-secure-password"; # 设置 VNC 密码
};
}
# 使用终端扫码登录
docker logs llonebot
使用 VNC 登录