Compare commits
6
Commits
cc4b41a4b0
...
a9ffe67b8b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a9ffe67b8b | ||
|
|
fab534431c | ||
|
|
ddbeaa7b5b | ||
|
|
3a6a75bffa | ||
|
|
ef499b0581 | ||
|
|
d469f067bd |
No files matched your search
Generated
+12
-68
@@ -60,11 +60,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1794815051,
|
||||
"narHash": "sha256-03xK+GPuyAIbUHvJXsWY2QclronkMUkxxDUegFrbYlU=",
|
||||
"lastModified": 1795167012,
|
||||
"narHash": "sha256-lrLLMUJNddmAMMDobTJVshu7ckzMTmTab4S3XPFgT1E=",
|
||||
"ref": "main",
|
||||
"rev": "640bd1d321ea5078b1f17bf1d6e6afaf734b669f",
|
||||
"revCount": 29,
|
||||
"rev": "7be6c580cb78e8e3267b6d98e421275aacc8140b",
|
||||
"revCount": 30,
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.ppp.pm:1122/alex/ct.git"
|
||||
},
|
||||
@@ -81,11 +81,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1794923331,
|
||||
"narHash": "sha256-XYTQoGWOk726CDRhln2OX5zUN//LWplbnEQpccjGVjE=",
|
||||
"lastModified": 1795167002,
|
||||
"narHash": "sha256-hK9+pyikXKjmHSrLIJD+hz+RheahxaYIfnCOuyObenA=",
|
||||
"ref": "main",
|
||||
"rev": "bf06c5aa4eddded40dd7ce1e185151d6eaf700b5",
|
||||
"revCount": 59,
|
||||
"rev": "4bfb51e1e3e958695008eac98dbf7a83a69b6f62",
|
||||
"revCount": 60,
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.ppp.pm:1122/alex/dagbok.git"
|
||||
},
|
||||
@@ -222,24 +222,6 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"flake-utils_4": {
|
||||
"inputs": {
|
||||
"systems": "systems_6"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731533236,
|
||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "numtide",
|
||||
"repo": "flake-utils",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"heldtenkeltdotse-site": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
@@ -711,11 +693,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1794907651,
|
||||
"narHash": "sha256-nDbA3JBf/AOKeOFhHmGN5WA5Os1pGBl9p67Ou2DE8JI=",
|
||||
"lastModified": 1795166074,
|
||||
"narHash": "sha256-+FXCp0u8lJBmgyY0WbNFfkktewhT8iNDVceVlIfxQqg=",
|
||||
"ref": "main",
|
||||
"rev": "c3c1162eb81aaadb174e13e9555c6cff8e7abf6e",
|
||||
"revCount": 42,
|
||||
"rev": "c6dd8891debccd16dd268238c3cc0c728058680e",
|
||||
"revCount": 47,
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.ppp.pm:1122/alex/ndp.git"
|
||||
},
|
||||
@@ -950,7 +932,6 @@
|
||||
"pppdotpm-site": "pppdotpm-site",
|
||||
"puppy-tracker": "puppy-tracker",
|
||||
"schema": "schema",
|
||||
"solo-referee": "solo-referee",
|
||||
"todo": "todo",
|
||||
"whib-backend": "whib-backend",
|
||||
"whib-frontend": "whib-frontend"
|
||||
@@ -977,28 +958,6 @@
|
||||
"url": "ssh://gitea@git.ppp.pm:1122/alex/schema.git"
|
||||
}
|
||||
},
|
||||
"solo-referee": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils_4",
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793606847,
|
||||
"narHash": "sha256-S1TQWwx1dm9Y/TWWmaxUGCuBIKmftiXx+uNshj/2K7M=",
|
||||
"ref": "main",
|
||||
"rev": "cf0ebe6df54fd1d3203f531d90718ca54803abb9",
|
||||
"revCount": 81,
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.ppp.pm:1122/alex/solo-referee.git"
|
||||
},
|
||||
"original": {
|
||||
"ref": "main",
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.ppp.pm:1122/alex/solo-referee.git"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
"locked": {
|
||||
"lastModified": 1689347949,
|
||||
@@ -1074,21 +1033,6 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"systems_6": {
|
||||
"locked": {
|
||||
"lastModified": 1681028828,
|
||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-systems",
|
||||
"repo": "default",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"todo": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
||||
@@ -105,12 +105,6 @@
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
solo-referee = {
|
||||
url = "git+ssh://gitea@git.ppp.pm:1122/alex/solo-referee.git?ref=main";
|
||||
# url = "path:/home/alex/code/solo-referee";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
schema = {
|
||||
url = "git+ssh://gitea@git.ppp.pm:1122/alex/schema.git?ref=main";
|
||||
# url = "path:/home/alex/code/schema";
|
||||
|
||||
@@ -27,7 +27,6 @@ in
|
||||
homepage.enable = true;
|
||||
disk-smart.enable = true;
|
||||
puppy-tracker.enable = true;
|
||||
solo-referee.enable = true;
|
||||
todo.enable = true;
|
||||
schema.enable = true;
|
||||
atuin.enable = true;
|
||||
|
||||
@@ -105,7 +105,6 @@ let
|
||||
snapshot /var/lib/jellyfin "$STATE/jellyfin" --exclude='transcodes/' --exclude='cache/' --exclude='metadata/' --exclude='log/' --exclude='data/subtitles/'
|
||||
snapshot /var/lib/audiobookshelf "$STATE/audiobookshelf" --exclude='metadata/'
|
||||
snapshot /var/lib/puppy-tracker "$STATE/puppy-tracker"
|
||||
snapshot /var/lib/solo-referee "$STATE/solo-referee"
|
||||
snapshot /var/lib/todo "$STATE/todo"
|
||||
snapshot /var/lib/schema "$STATE/schema"
|
||||
snapshot /var/lib/dagbok "$STATE/dagbok"
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
enabled = config.mod.solo-referee.enable;
|
||||
port = 8090;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
mod.solo-referee = {
|
||||
enable = lib.mkEnableOption "Enable solo-referee module";
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
inputs.solo-referee.nixosModules.default
|
||||
];
|
||||
|
||||
config = lib.mkIf enabled {
|
||||
mod.homepage.services = [
|
||||
{
|
||||
name = "Solo Referee";
|
||||
port = port;
|
||||
description = "Solo-RPG tool with Claude as GM";
|
||||
# url omitted → homepage links to http://manatee:${port}.
|
||||
}
|
||||
];
|
||||
|
||||
services.solo-referee = {
|
||||
enable = true;
|
||||
inherit port;
|
||||
# Reachable on the LAN / Tailscale at manatee:${port}; no public vhost.
|
||||
address = "0.0.0.0";
|
||||
openFirewall = true;
|
||||
# Anthropic API key kept out of the store; the file holds
|
||||
# `ANTHROPIC_API_KEY=...`. Without it the offline stub GM runs.
|
||||
apiKeyFile = config.age.secrets."solo-referee-api-key".path;
|
||||
};
|
||||
|
||||
age.secrets."solo-referee-api-key".file =
|
||||
../../../../secrets/manatee/solo-referee-api-key.age;
|
||||
};
|
||||
}
|
||||
@@ -49,6 +49,7 @@ in
|
||||
server = "http://manatee:4533";
|
||||
user = "navi";
|
||||
passwordCommand = "cat ${config.age.secrets."navidrome-password".path}";
|
||||
anthropicKeyCommand = "cat ${config.age.secrets."ndp-llm-api-key".path}";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -84,4 +85,10 @@ in
|
||||
owner = "alex";
|
||||
group = "users";
|
||||
};
|
||||
|
||||
age.secrets."ndp-llm-api-key" = {
|
||||
file = ../../../../secrets/pinwheel/ndp-llm-api-key.age;
|
||||
owner = "alex";
|
||||
group = "users";
|
||||
};
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
+1
-1
@@ -28,6 +28,7 @@ in {
|
||||
"pinwheel/work-production-ovpn.age".publicKeys = [ pinwheel alex ];
|
||||
"pinwheel/naviterm-config.age".publicKeys = [ pinwheel alex ];
|
||||
"pinwheel/navidrome-password.age".publicKeys = [ pinwheel alex ];
|
||||
"pinwheel/ndp-llm-api-key.age".publicKeys = [ pinwheel alex ];
|
||||
"pinwheel/atuin-key.age".publicKeys = [ pinwheel alex ];
|
||||
|
||||
"manatee/root.manatee.age".publicKeys = [ manatee alex ];
|
||||
@@ -47,7 +48,6 @@ in {
|
||||
"manatee/romm-db-password.age".publicKeys = [ manatee alex ];
|
||||
"manatee/romm-metadata-api-keys.age".publicKeys = [ manatee alex ];
|
||||
"manatee/puppy-tracker-invite-code.age".publicKeys = [ manatee alex ];
|
||||
"manatee/solo-referee-api-key.age".publicKeys = [ manatee alex ];
|
||||
"manatee/todo-token.age".publicKeys = [ manatee alex ];
|
||||
"manatee/dagbok-token.age".publicKeys = [ manatee pinwheel alex ];
|
||||
"manatee/schema-invite-code.age".publicKeys = [ manatee alex ];
|
||||
|
||||
Reference in new issue
Block a user