1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-12-04 18:56:56 +01:00

thegeneralist: enable crosspost worker (services.crosspost)

This commit is contained in:
TheGeneralist 2026-10-25 16:44:36 +01:00
parent 21703da739
commit f66077d763
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
7 changed files with 69 additions and 7 deletions

50
flake.lock generated
View file

@ -61,6 +61,25 @@
"type": "github"
}
},
"crosspost": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1792943133,
"narHash": "sha256-qnrkRQksIVfzGhWGnhBSWd91sSb6NBy9qQ6SPMW0/Co=",
"ref": "main",
"rev": "c1abfb1370857bc069037e177be9d1b8539398ed",
"revCount": 3,
"type": "git",
"url": "ssh://git@github.com/thegeneralist01/crosspost"
},
"original": {
"ref": "main",
"type": "git",
"url": "ssh://git@github.com/thegeneralist01/crosspost"
}
},
"fenix": {
"inputs": {
"nixpkgs": [
@ -364,11 +383,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1774709303,
"narHash": "sha256-D3Q07BbIA2KnTcSXIqqu9P586uWxN74zNoCH3h2ESHg=",
"lastModified": 1792773339,
"narHash": "sha256-rZLrzrC6i+jnTAlvPZHogKDulY7WWDEv9hJeHieO7Zw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8110df5ad7abf5d4c0f6fb0f8f978390e77f9685",
"rev": "3ec636362e1816bc2f0888fa0fa2c69f1bc9e504",
"type": "github"
},
"original": {
@ -427,6 +446,22 @@
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1774709303,
"narHash": "sha256-D3Q07BbIA2KnTcSXIqqu9P586uWxN74zNoCH3h2ESHg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8110df5ad7abf5d4c0f6fb0f8f978390e77f9685",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1755186698,
"narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
@ -442,7 +477,7 @@
"type": "github"
}
},
"nixpkgs_3": {
"nixpkgs_4": {
"locked": {
"lastModified": 1769789167,
"narHash": "sha256-kKB3bqYJU5nzYeIROI82Ef9VtTbu4uA3YydSk/Bioa8=",
@ -506,7 +541,7 @@
"readlater-bot": {
"inputs": {
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_3"
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1776031277,
@ -526,6 +561,7 @@
"inputs": {
"aerospace-src": "aerospace-src",
"agenix": "agenix",
"crosspost": "crosspost",
"fenix": "fenix",
"ghostty": "ghostty",
"helium": "helium",
@ -535,7 +571,7 @@
"niri": "niri",
"nix-darwin": "nix-darwin",
"nix-homebrew": "nix-homebrew",
"nixpkgs": "nixpkgs",
"nixpkgs": "nixpkgs_2",
"noctalia": "noctalia",
"noctalia-qs": "noctalia-qs",
"readlater-bot": "readlater-bot",
@ -652,7 +688,7 @@
},
"treefmt-nix": {
"inputs": {
"nixpkgs": "nixpkgs_2"
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1772660329,

View file

@ -64,6 +64,10 @@
url = "github:thegeneralist01/bookkeeper";
};
# Private repo: git+ssh so fetching uses the evaluating user's SSH key (github: would need an access token).
# No nixpkgs follows: the worker is built from crosspost's own pinned nixpkgs.
crosspost.url = "git+ssh://git@github.com/thegeneralist01/crosspost?ref=main";
noctalia = {
url = "github:noctalia-dev/noctalia-shell";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -17,6 +17,7 @@
./cache
./archive
./forgejo
./crosspost
];
age.secrets.readlaterBotToken = {

View file

@ -0,0 +1,5 @@
age-encryption.org/v1
-> ssh-ed25519 pp9qdQ Dye18WG21VQ551B9FHTQ4h3LuMkHEtvhvdJlM1ITxF8
QBg7sp1mGH/1MgXojf8YSQK0eWY+ZEllDiKsV9fvnRk
--- odTSmOaF35PJqMI9X2UbfXQr2E4r/wizVmEeKUwXDZg
$f£Û&qA]$æ"×Òá±Ûÿ¬¢"ùñÊ®á Ë´Öo³2ß/SÎë^T¯¶©¹`7zh .E5ŽšBç)‹ÎçyÀ¿˜üV„ã(

View file

@ -0,0 +1,14 @@
{ config, ... }:
{
# Crosspost worker: publishes queued X/LinkedIn/Instagram posts for crosspost-app (Cloudflare).
# Outbound HTTPS only. Module source: ~/personal/crosspost (flake input `crosspost`).
age.secrets.crosspostApiToken.file = ./api-token.age;
age.secrets.crosspostWorkerKey.file = ./worker-key.age;
services.crosspost = {
enable = true;
appUrl = "https://crosspost-app.thegeneralist01.workers.dev";
apiTokenFile = config.age.secrets.crosspostApiToken.path;
privateKeyFile = config.age.secrets.crosspostWorkerKey.path;
};
}

Binary file not shown.

View file

@ -11,6 +11,8 @@ in
"hosts/thegeneralist/readlater-bot-token.age".publicKeys = [ thegeneralist ];
"hosts/thegeneralist/readlater-bot-sync-token.age".publicKeys = [ thegeneralist ];
"hosts/thegeneralist/readlater-bot-user-id.age".publicKeys = [ thegeneralist ];
"hosts/thegeneralist/crosspost/api-token.age".publicKeys = [ thegeneralist ];
"hosts/thegeneralist/crosspost/worker-key.age".publicKeys = [ thegeneralist ];
"modules/linux/tailscale-marshall.age".publicKeys = [ thegeneralist ];
}