Skip to content

Commit 70eb723

Browse files
openclaw: bring tom to slack in persistent http connection kept
1 parent 129cf76 commit 70eb723

File tree

8 files changed

+364
-1
lines changed

8 files changed

+364
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ versioning is done in a continuous fashion without worries of breaking changes.
66

77
## patches
88

9+
- `openclaw`: bring tom to slack in persistent http connection kept 2026-04-05
910
- `systemd`: protect against services finding another other process 2026-04-04
1011
- `nix`: import language servers and formatted linter from upstream 2026-04-04
1112
- `vhs`: record terminal demos with tapes that share in caring gifs 2026-03-30

cloud/configuration.nix

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@
6666
email = "zim@o526.net";
6767
group = "nginx";
6868
};
69+
"tom.o526.net" = {
70+
email = "zim@o526.net";
71+
group = "nginx";
72+
};
6973
"o526.net" = {
7074
email = "zim@o526.net";
7175
group = "nginx";
@@ -124,6 +128,17 @@
124128
proxyWebsockets = true;
125129
};
126130
};
131+
"tom.o526.net" = {
132+
enableACME = true;
133+
forceSSL = true;
134+
locations."/slack/events" = {
135+
proxyPass = "http://10.100.0.2:18789";
136+
proxyWebsockets = false;
137+
extraConfig = ''
138+
proxy_set_header x-forwarded-user "slack";
139+
'';
140+
};
141+
};
127142
"o526.net" = {
128143
enableACME = true;
129144
forceSSL = true;

flake.lock

Lines changed: 113 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
url = "github:LnL7/nix-darwin";
2121
inputs.nixpkgs.follows = "nixpkgs";
2222
};
23+
nix-openclaw = {
24+
url = "github:openclaw/nix-openclaw";
25+
inputs.nixpkgs.follows = "nixpkgs";
26+
};
2327
nixos-generators = {
2428
url = "github:nix-community/nixos-generators";
2529
inputs.nixpkgs.follows = "nixpkgs";
@@ -166,6 +170,7 @@
166170
./machines/tom/configuration.nix
167171
inputs.home-manager.nixosModules.home-manager
168172
inputs.impermanence.nixosModules.impermanence
173+
inputs.nix-openclaw.nixosModules.openclaw-gateway
169174
inputs.sops-nix.nixosModules.sops
170175
{
171176
home-manager = {

machines/tom/configuration.nix

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
};
1414
};
1515
nixpkgs.config = {
16+
allowInsecurePredicate =
17+
pkg:
18+
builtins.elem (pkgs.lib.getName pkg) [
19+
"openclaw"
20+
];
1621
allowUnfreePredicate =
1722
pkg:
1823
builtins.elem (pkgs.lib.getName pkg) [
@@ -60,6 +65,7 @@
6065
./services/interception-tools
6166
./services/minecraft-server
6267
./services/ollama
68+
./services/openclaw-gateway
6369
./services/openssh
6470
./services/pipewire
6571
./services/plasma6
@@ -93,6 +99,7 @@
9399
"/etc/ollama/models"
94100
"/srv/minecraft/world"
95101
"/var/lib/nixos"
102+
"/var/lib/openclaw"
96103
"/var/lib/slack"
97104
"/var/lib/soft-serve"
98105
"/var/lib/systemd/coredump"
@@ -159,6 +166,7 @@
159166
5000 # Quintus
160167
8082 # Todo's Guide
161168
8083 # Endpoints
169+
18789 # OpenClaw
162170
23231 # Soft Serve
163171
25565 # Minecraft
164172
];
@@ -283,6 +291,12 @@
283291
owner = "slacks";
284292
group = "slacks";
285293
};
294+
"openclaw" = {
295+
format = "dotenv";
296+
owner = "openclaw";
297+
group = "openclaw";
298+
sopsFile = ./services/openclaw-gateway/vault.env;
299+
};
286300
"restic/git" = {
287301
owner = "git";
288302
group = "git";
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
keys:
2+
- &tom age1dujf55uzev2nnpq6c2drn0e8pmpxay22qqfsavwaxqakwn9se5hsputgx4
3+
creation_rules:
4+
- path_regex: \.env$
5+
key_groups:
6+
- age:
7+
- *tom

0 commit comments

Comments
 (0)