mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
add cloudflare r2 bucket for cache
This commit is contained in:
parent
f89b3dd3b9
commit
a4304400f8
4 changed files with 23 additions and 4 deletions
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -150,11 +150,11 @@
|
|||
},
|
||||
"nix-secrets": {
|
||||
"locked": {
|
||||
"lastModified": 1739076986,
|
||||
"narHash": "sha256-nFlA5xD/KyKqjTx9fYO2EK3Ea0dl5S4VZC5Wfyk6oAc=",
|
||||
"lastModified": 1739112417,
|
||||
"narHash": "sha256-AMFcWVO1vLHWqC0nw9hn0R6opShElYjq8UF/PPYKCvg=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "f00a6d09843d80f87aa6af06ad5ab74670a591b1",
|
||||
"revCount": 40,
|
||||
"rev": "a7f5458177a159ae3c840b5723deec7cd3838f3b",
|
||||
"revCount": 42,
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com/TheWanderingCrow/nix-secrets"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@
|
|||
source = "hashicorp/aws";
|
||||
version = "5.86.0";
|
||||
};
|
||||
cloudflare = {
|
||||
source = "cloudflare/cloudflare";
|
||||
version = "5.0.0";
|
||||
};
|
||||
};
|
||||
backend."s3" = {
|
||||
bucket = "wce-20250207201121178400000001";
|
||||
|
|
@ -30,6 +34,12 @@
|
|||
};
|
||||
};
|
||||
|
||||
"cloudflare_r2_bucket"."cache" = {
|
||||
account = "68c4b3ab47c1a97037ab5a938f772d69";
|
||||
name = "wce-attic-cache";
|
||||
storage_class = "Standard";
|
||||
};
|
||||
|
||||
#"digitalocean_droplet"."do-wce-lighthouse1" = {
|
||||
# image = "177939596"; # nixos-digitalocean
|
||||
# name = "WCE-Lighthouse1";
|
||||
|
|
|
|||
|
|
@ -45,4 +45,12 @@ lib.mkIf config.user.crow.enable {
|
|||
sops.secrets."digitalocean/token" = {
|
||||
owner = config.users.users.crow.name;
|
||||
};
|
||||
|
||||
##############
|
||||
# Cloudflare #
|
||||
##############
|
||||
|
||||
sops.secrets."cloudflare/token" = {
|
||||
owner = config.users.users.crow.name;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
default = pkgs.mkShell {
|
||||
NIX_CONFIG = "extra-experimental-features = nix-command flakes";
|
||||
DIGITALOCEAN_TOKEN = builtins.readFile /run/secrets/digitalocean/token;
|
||||
CLOUDFLARE_API_TOKEN = builtins.readFile /run/secrets/cloudflare/token;
|
||||
AWS_PROFILE = "wce";
|
||||
nativeBuildInputs = with pkgs; [
|
||||
git
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue