Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
+

+

-
  • Loading branch information
oluceps committed Oct 18, 2024
1 parent 3cbf9db commit 2499c2c
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 17 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
agenix-rekey.flakeModule
])
++ [ ./hosts ];
debug = false;
debug = true;
systems = [
"x86_64-linux"
"aarch64-linux"
Expand Down
2 changes: 1 addition & 1 deletion hosts/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let
sshPubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEv3S53gBU3Hqvr5o5g+yrn1B7eiaE5Y/OIFlTwU+NEG";
skSshPubKey = "[email protected] AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIH+HwSzDbhJOIs8cMuUaCsvwqfla4GY6EuD1yGuNkX6QAAAADnNzaDoxNjg5NTQzMzc1";
};
xmrAddr = "46TckNysSV7PdNA3PW134heWh4Nv3Fxv7Lab7aqw6utMEFK5qJypgteRZppWfsYnZAeoi7sddUP41Sr2YfFqr4urBiE1Xbw";
xmrAddr = (./sum.toml |> builtins.readFile |> fromTOML).api.misc.donate.Monero;
};

genModules = map (
Expand Down
16 changes: 1 addition & 15 deletions hosts/nodens/caddy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pkgs,
lib,
config,
self,
...
}:
{
Expand Down Expand Up @@ -202,21 +203,6 @@
# ];
# match = [ { host = [ "cdn.nyaw.xyz" ]; } ];
# }
{
handle = [
{
body = builtins.toJSON {
"misskey_online" = {
url = "https://blog.nyaw.xyz/api/online";
type = "bool";
description = "";
};
};
handler = "static_response";
}
];
match = [ { host = [ "api.nyaw.xyz" ]; } ];
}
];
}
];
Expand Down
48 changes: 48 additions & 0 deletions hosts/sum.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,51 @@ addr = "[email protected]"
[[host]]
name = "yidhra" # feral chicken
addr = "[email protected]"

[api._links.self]
href = "https://api.nyaw.xyz"

[[api.site]]
id = "misskey_nyaw"
name = "Misskey Instance"
target = "https://nyaw.xyz/"

[[api.site]]
id = "ntfy"
name = "Ntfy Server"
target = "https://ntfy.nyaw.xyz/"

[[api.site]]
id = "blog_nyaw"
name = "Blog"
target = "https://blog.nyaw.xyz/"

[[api.site]]
id = "matrix_web_client"
name = "Matrix Web Client"
target = "https://matrix.nyaw.xyz/"

[[api.site]]
id = "nix_cache"
name = "Harmonia - Nix Cache"
target = "https://cache.nyaw.xyz/"

[[api.site]]
id = "pastebin"
name = "Pastebin"
target = "https://pb.nyaw.xyz/"

[[api.site]]
id = "vaultwarden"
name = "Vaultwarden Web"
target = "https://vault.nyaw.xyz/"

[api.misc.misskey_online]
url = "https://blog.nyaw.xyz/api/online"
method = "GET"
description = "bool value"

[api.misc.donate]
Monero = "46TckNysSV7PdNA3PW134heWh4Nv3Fxv7Lab7aqw6utMEFK5qJypgteRZppWfsYnZAeoi7sddUP41Sr2YfFqr4urBiE1Xbw"
Solana = "AqRNAHbp12wk6HMSd8cffFz1NXXigBiU14LLecP4Rkxo"
ERC-20 = "0xAD109D5E5CE7EF7F6263AA5238d6fb1b40516e68"

0 comments on commit 2499c2c

Please sign in to comment.