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:
parent
21703da739
commit
f66077d763
7 changed files with 69 additions and 7 deletions
50
flake.lock
generated
50
flake.lock
generated
|
|
@ -61,6 +61,25 @@
|
||||||
"type": "github"
|
"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": {
|
"fenix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|
@ -364,11 +383,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1774709303,
|
"lastModified": 1792773339,
|
||||||
"narHash": "sha256-D3Q07BbIA2KnTcSXIqqu9P586uWxN74zNoCH3h2ESHg=",
|
"narHash": "sha256-rZLrzrC6i+jnTAlvPZHogKDulY7WWDEv9hJeHieO7Zw=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "8110df5ad7abf5d4c0f6fb0f8f978390e77f9685",
|
"rev": "3ec636362e1816bc2f0888fa0fa2c69f1bc9e504",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -427,6 +446,22 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"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": {
|
"locked": {
|
||||||
"lastModified": 1755186698,
|
"lastModified": 1755186698,
|
||||||
"narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
|
"narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
|
||||||
|
|
@ -442,7 +477,7 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_4": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1769789167,
|
"lastModified": 1769789167,
|
||||||
"narHash": "sha256-kKB3bqYJU5nzYeIROI82Ef9VtTbu4uA3YydSk/Bioa8=",
|
"narHash": "sha256-kKB3bqYJU5nzYeIROI82Ef9VtTbu4uA3YydSk/Bioa8=",
|
||||||
|
|
@ -506,7 +541,7 @@
|
||||||
"readlater-bot": {
|
"readlater-bot": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils_3",
|
"flake-utils": "flake-utils_3",
|
||||||
"nixpkgs": "nixpkgs_3"
|
"nixpkgs": "nixpkgs_4"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1776031277,
|
"lastModified": 1776031277,
|
||||||
|
|
@ -526,6 +561,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"aerospace-src": "aerospace-src",
|
"aerospace-src": "aerospace-src",
|
||||||
"agenix": "agenix",
|
"agenix": "agenix",
|
||||||
|
"crosspost": "crosspost",
|
||||||
"fenix": "fenix",
|
"fenix": "fenix",
|
||||||
"ghostty": "ghostty",
|
"ghostty": "ghostty",
|
||||||
"helium": "helium",
|
"helium": "helium",
|
||||||
|
|
@ -535,7 +571,7 @@
|
||||||
"niri": "niri",
|
"niri": "niri",
|
||||||
"nix-darwin": "nix-darwin",
|
"nix-darwin": "nix-darwin",
|
||||||
"nix-homebrew": "nix-homebrew",
|
"nix-homebrew": "nix-homebrew",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs_2",
|
||||||
"noctalia": "noctalia",
|
"noctalia": "noctalia",
|
||||||
"noctalia-qs": "noctalia-qs",
|
"noctalia-qs": "noctalia-qs",
|
||||||
"readlater-bot": "readlater-bot",
|
"readlater-bot": "readlater-bot",
|
||||||
|
|
@ -652,7 +688,7 @@
|
||||||
},
|
},
|
||||||
"treefmt-nix": {
|
"treefmt-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_3"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1772660329,
|
"lastModified": 1772660329,
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,10 @@
|
||||||
url = "github:thegeneralist01/bookkeeper";
|
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 = {
|
noctalia = {
|
||||||
url = "github:noctalia-dev/noctalia-shell";
|
url = "github:noctalia-dev/noctalia-shell";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
./cache
|
./cache
|
||||||
./archive
|
./archive
|
||||||
./forgejo
|
./forgejo
|
||||||
|
./crosspost
|
||||||
];
|
];
|
||||||
|
|
||||||
age.secrets.readlaterBotToken = {
|
age.secrets.readlaterBotToken = {
|
||||||
|
|
|
||||||
5
hosts/thegeneralist/crosspost/api-token.age
Normal file
5
hosts/thegeneralist/crosspost/api-token.age
Normal 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„ã(
|
||||||
14
hosts/thegeneralist/crosspost/default.nix
Normal file
14
hosts/thegeneralist/crosspost/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
BIN
hosts/thegeneralist/crosspost/worker-key.age
Normal file
BIN
hosts/thegeneralist/crosspost/worker-key.age
Normal file
Binary file not shown.
|
|
@ -11,6 +11,8 @@ in
|
||||||
"hosts/thegeneralist/readlater-bot-token.age".publicKeys = [ thegeneralist ];
|
"hosts/thegeneralist/readlater-bot-token.age".publicKeys = [ thegeneralist ];
|
||||||
"hosts/thegeneralist/readlater-bot-sync-token.age".publicKeys = [ thegeneralist ];
|
"hosts/thegeneralist/readlater-bot-sync-token.age".publicKeys = [ thegeneralist ];
|
||||||
"hosts/thegeneralist/readlater-bot-user-id.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 ];
|
"modules/linux/tailscale-marshall.age".publicKeys = [ thegeneralist ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue