feat: gitea only secure /urer/settings
This commit is contained in:
@@ -2,11 +2,12 @@
|
|||||||
lib,
|
lib,
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker.enable = true;
|
||||||
sops = {
|
sops = {
|
||||||
# secrets."gitea/registration".owner = config.systemd.services.gitea-actions-mirai.serviceConfig.User;
|
# secrets."gitea/registration".owner = config.systemd.services.gitea-actions-mirai.serviceConfig.User;
|
||||||
secrets."gitea/registration" = {};
|
secrets."gitea/registration" = { };
|
||||||
templates = {
|
templates = {
|
||||||
"GITEA_REGISTRATION_TOKEN.env".content = ''
|
"GITEA_REGISTRATION_TOKEN.env".content = ''
|
||||||
TOKEN=${config.sops.placeholder."gitea/registration"}
|
TOKEN=${config.sops.placeholder."gitea/registration"}
|
||||||
@@ -71,6 +72,9 @@
|
|||||||
{
|
{
|
||||||
domain = "git.darksailor.dev";
|
domain = "git.darksailor.dev";
|
||||||
policy = "one_factor";
|
policy = "one_factor";
|
||||||
|
resources = [
|
||||||
|
"/user/settings"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,11 +3,12 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}:
|
||||||
|
{
|
||||||
sops = {
|
sops = {
|
||||||
secrets."llama/api_key".owner = config.services.caddy.user;
|
secrets."llama/api_key".owner = config.services.caddy.user;
|
||||||
secrets."llama/user".owner = config.services.caddy.user;
|
secrets."llama/user".owner = config.services.caddy.user;
|
||||||
secrets."openai/api_key" = {};
|
secrets."openai/api_key" = { };
|
||||||
templates = {
|
templates = {
|
||||||
"LLAMA_API_KEY.env".content = ''
|
"LLAMA_API_KEY.env".content = ''
|
||||||
LLAMA_API_KEY=${config.sops.placeholder."llama/api_key"}
|
LLAMA_API_KEY=${config.sops.placeholder."llama/api_key"}
|
||||||
@@ -20,7 +21,7 @@
|
|||||||
};
|
};
|
||||||
services = {
|
services = {
|
||||||
llama-cpp = {
|
llama-cpp = {
|
||||||
enable = true;
|
enable = false;
|
||||||
port = 11435;
|
port = 11435;
|
||||||
model = pkgs.fetchurl {
|
model = pkgs.fetchurl {
|
||||||
url = "https://huggingface.co/lmstudio-community/gpt-oss-20b-GGUF/resolve/main/gpt-oss-20b-MXFP4.gguf";
|
url = "https://huggingface.co/lmstudio-community/gpt-oss-20b-GGUF/resolve/main/gpt-oss-20b-MXFP4.gguf";
|
||||||
@@ -30,7 +31,12 @@
|
|||||||
};
|
};
|
||||||
ollama = {
|
ollama = {
|
||||||
enable = true;
|
enable = true;
|
||||||
loadModels = ["deepseek-r1:7b" "deepseek-r1:14b" "RobinBially/nomic-embed-text-8k" "qwen3:8b"];
|
loadModels = [
|
||||||
|
"deepseek-r1:7b"
|
||||||
|
"deepseek-r1:14b"
|
||||||
|
"RobinBially/nomic-embed-text-8k"
|
||||||
|
"qwen3:8b"
|
||||||
|
];
|
||||||
port = 11434;
|
port = 11434;
|
||||||
host = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
environmentVariables = {
|
environmentVariables = {
|
||||||
|
|||||||
Reference in New Issue
Block a user