Compare commits

..
8 Commits
9 changed files with 20 additions and 123 deletions

No files matched your search

Generated
+12 -68
View File
@@ -60,11 +60,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1794815051, "lastModified": 1795167012,
"narHash": "sha256-03xK+GPuyAIbUHvJXsWY2QclronkMUkxxDUegFrbYlU=", "narHash": "sha256-lrLLMUJNddmAMMDobTJVshu7ckzMTmTab4S3XPFgT1E=",
"ref": "main", "ref": "main",
"rev": "640bd1d321ea5078b1f17bf1d6e6afaf734b669f", "rev": "7be6c580cb78e8e3267b6d98e421275aacc8140b",
"revCount": 29, "revCount": 30,
"type": "git", "type": "git",
"url": "ssh://gitea@git.ppp.pm:1122/alex/ct.git" "url": "ssh://gitea@git.ppp.pm:1122/alex/ct.git"
}, },
@@ -81,11 +81,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1794923331, "lastModified": 1795169003,
"narHash": "sha256-XYTQoGWOk726CDRhln2OX5zUN//LWplbnEQpccjGVjE=", "narHash": "sha256-He4Tde9AYNSIb8D8ZowMAUECQnUM07cSEwqc10D04xc=",
"ref": "main", "ref": "main",
"rev": "bf06c5aa4eddded40dd7ce1e185151d6eaf700b5", "rev": "c3114be05fda532d8fbb14149a5a662550bc49f2",
"revCount": 59, "revCount": 61,
"type": "git", "type": "git",
"url": "ssh://gitea@git.ppp.pm:1122/alex/dagbok.git" "url": "ssh://gitea@git.ppp.pm:1122/alex/dagbok.git"
}, },
@@ -222,24 +222,6 @@
"type": "github" "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": { "heldtenkeltdotse-site": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@@ -711,11 +693,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1794907651, "lastModified": 1795359024,
"narHash": "sha256-nDbA3JBf/AOKeOFhHmGN5WA5Os1pGBl9p67Ou2DE8JI=", "narHash": "sha256-y8QxP87mNSW+Dzb4MnTmibVkrQ9yrz+WJthJaFKr9h0=",
"ref": "main", "ref": "main",
"rev": "c3c1162eb81aaadb174e13e9555c6cff8e7abf6e", "rev": "dd0c3762e91759ebd6fb449194690bf4cddb824f",
"revCount": 42, "revCount": 48,
"type": "git", "type": "git",
"url": "ssh://gitea@git.ppp.pm:1122/alex/ndp.git" "url": "ssh://gitea@git.ppp.pm:1122/alex/ndp.git"
}, },
@@ -950,7 +932,6 @@
"pppdotpm-site": "pppdotpm-site", "pppdotpm-site": "pppdotpm-site",
"puppy-tracker": "puppy-tracker", "puppy-tracker": "puppy-tracker",
"schema": "schema", "schema": "schema",
"solo-referee": "solo-referee",
"todo": "todo", "todo": "todo",
"whib-backend": "whib-backend", "whib-backend": "whib-backend",
"whib-frontend": "whib-frontend" "whib-frontend": "whib-frontend"
@@ -977,28 +958,6 @@
"url": "ssh://gitea@git.ppp.pm:1122/alex/schema.git" "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": { "systems": {
"locked": { "locked": {
"lastModified": 1689347949, "lastModified": 1689347949,
@@ -1074,21 +1033,6 @@
"type": "github" "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": { "todo": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
-6
View File
@@ -105,12 +105,6 @@
inputs.nixpkgs.follows = "nixpkgs"; 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 = { schema = {
url = "git+ssh://gitea@git.ppp.pm:1122/alex/schema.git?ref=main"; url = "git+ssh://gitea@git.ppp.pm:1122/alex/schema.git?ref=main";
# url = "path:/home/alex/code/schema"; # url = "path:/home/alex/code/schema";
-1
View File
@@ -27,7 +27,6 @@ in
homepage.enable = true; homepage.enable = true;
disk-smart.enable = true; disk-smart.enable = true;
puppy-tracker.enable = true; puppy-tracker.enable = true;
solo-referee.enable = true;
todo.enable = true; todo.enable = true;
schema.enable = true; schema.enable = true;
atuin.enable = true; atuin.enable = true;
-1
View File
@@ -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/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/audiobookshelf "$STATE/audiobookshelf" --exclude='metadata/'
snapshot /var/lib/puppy-tracker "$STATE/puppy-tracker" 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/todo "$STATE/todo"
snapshot /var/lib/schema "$STATE/schema" snapshot /var/lib/schema "$STATE/schema"
snapshot /var/lib/dagbok "$STATE/dagbok" 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;
};
}
+7
View File
@@ -49,6 +49,7 @@ in
server = "http://manatee:4533"; server = "http://manatee:4533";
user = "navi"; user = "navi";
passwordCommand = "cat ${config.age.secrets."navidrome-password".path}"; 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"; owner = "alex";
group = "users"; 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
View File
@@ -28,6 +28,7 @@ in {
"pinwheel/work-production-ovpn.age".publicKeys = [ pinwheel alex ]; "pinwheel/work-production-ovpn.age".publicKeys = [ pinwheel alex ];
"pinwheel/naviterm-config.age".publicKeys = [ pinwheel alex ]; "pinwheel/naviterm-config.age".publicKeys = [ pinwheel alex ];
"pinwheel/navidrome-password.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 ]; "pinwheel/atuin-key.age".publicKeys = [ pinwheel alex ];
"manatee/root.manatee.age".publicKeys = [ manatee alex ]; "manatee/root.manatee.age".publicKeys = [ manatee alex ];
@@ -47,7 +48,6 @@ in {
"manatee/romm-db-password.age".publicKeys = [ manatee alex ]; "manatee/romm-db-password.age".publicKeys = [ manatee alex ];
"manatee/romm-metadata-api-keys.age".publicKeys = [ manatee alex ]; "manatee/romm-metadata-api-keys.age".publicKeys = [ manatee alex ];
"manatee/puppy-tracker-invite-code.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/todo-token.age".publicKeys = [ manatee alex ];
"manatee/dagbok-token.age".publicKeys = [ manatee pinwheel alex ]; "manatee/dagbok-token.age".publicKeys = [ manatee pinwheel alex ];
"manatee/schema-invite-code.age".publicKeys = [ manatee alex ]; "manatee/schema-invite-code.age".publicKeys = [ manatee alex ];