Compare commits
No commits in common. "3b25f74fa1624279fcef5f83787c0f55cc7e7c62" and "dc166488f092a2cf183202adec534cdbfbdf98c4" have entirely different histories.
3b25f74fa1
...
dc166488f0
6 changed files with 17 additions and 31 deletions
|
@ -1,11 +0,0 @@
|
||||||
{config, ...}: {
|
|
||||||
programs.ssh = {
|
|
||||||
enable = true;
|
|
||||||
matchBlocks = let
|
|
||||||
inherit (config.home) homeDirectory;
|
|
||||||
in {
|
|
||||||
"blacksteel".identityFile = "${homeDirectory}/.ssh/id_github_signing";
|
|
||||||
"tyo0.ny4.dev".identityFile = "${homeDirectory}/.ssh/id_github_signing";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -42,7 +42,6 @@
|
||||||
./applications/git
|
./applications/git
|
||||||
./applications/gpg
|
./applications/gpg
|
||||||
./applications/neovim
|
./applications/neovim
|
||||||
./applications/ssh
|
|
||||||
./applications/starship
|
./applications/starship
|
||||||
./applications/tealdeer
|
./applications/tealdeer
|
||||||
./applications/tmux
|
./applications/tmux
|
||||||
|
|
|
@ -30,6 +30,9 @@
|
||||||
localsend
|
localsend
|
||||||
];
|
];
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [53317];
|
||||||
|
networking.firewall.allowedUDPPorts = [53317];
|
||||||
|
|
||||||
programs.adb.enable = true;
|
programs.adb.enable = true;
|
||||||
programs.anime-game-launcher.enable = true;
|
programs.anime-game-launcher.enable = true;
|
||||||
programs.seahorse.enable = true;
|
programs.seahorse.enable = true;
|
||||||
|
|
|
@ -40,20 +40,12 @@ http://mastodon.ny4.dev:80 {
|
||||||
|
|
||||||
http://matrix.ny4.dev:80 {
|
http://matrix.ny4.dev:80 {
|
||||||
import default
|
import default
|
||||||
reverse_proxy /_matrix/* unix//run/matrix-synapse/synapse.sock {
|
reverse_proxy /_matrix/* unix//run/matrix-synapse/synapse.sock
|
||||||
header_up X-Forwarded-Proto "https"
|
reverse_proxy /_synapse/client/* unix//run/matrix-synapse/synapse.sock
|
||||||
}
|
reverse_proxy /health unix//run/matrix-synapse/synapse.sock
|
||||||
reverse_proxy /_synapse/client/* unix//run/matrix-synapse/synapse.sock {
|
|
||||||
header_up X-Forwarded-Proto "https"
|
|
||||||
}
|
|
||||||
reverse_proxy /health unix//run/matrix-synapse/synapse.sock {
|
|
||||||
header_up X-Forwarded-Proto "https"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
http://syncv3.ny4.dev:80 {
|
http://syncv3.ny4.dev:80 {
|
||||||
import default
|
import default
|
||||||
reverse_proxy unix//run/matrix-sliding-sync/sync.sock {
|
reverse_proxy unix//run/matrix-sliding-sync/sync.sock
|
||||||
header_up X-Forwarded-Proto "https"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
######## Services
|
######## Services
|
||||||
environment.systemPackages = with pkgs; [qbittorrent-nox];
|
environment.systemPackages = with pkgs; [qbittorrent];
|
||||||
|
|
||||||
services.tailscale = {
|
services.tailscale = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -60,11 +60,14 @@
|
||||||
"6222a3e0-98da-4325-be19-0f86a7318a41" = {
|
"6222a3e0-98da-4325-be19-0f86a7318a41" = {
|
||||||
credentialsFile = config.sops.secrets."cloudflared/secret".path;
|
credentialsFile = config.sops.secrets."cloudflared/secret".path;
|
||||||
default = "http_status:404";
|
default = "http_status:404";
|
||||||
ingress = lib.genAttrs [
|
ingress = {
|
||||||
"mastodon.ny4.dev"
|
# TODO: is this safe?
|
||||||
"matrix.ny4.dev"
|
# browser <-> cloudflare cdn <-> cloudflared <-> caddy <-> mastodon
|
||||||
"syncv3.ny4.dev"
|
# ^ no tls in this part?
|
||||||
] (_: "http://localhost");
|
"mastodon.ny4.dev" = "http://localhost:80";
|
||||||
|
"matrix.ny4.dev" = "http://localhost:80";
|
||||||
|
"syncv3.ny4.dev" = "http://localhost:80";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -27,13 +27,13 @@
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
yubikey-manager
|
yubikey-manager
|
||||||
|
localsend
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [53317];
|
networking.firewall.allowedTCPPorts = [53317];
|
||||||
networking.firewall.allowedUDPPorts = [53317];
|
networking.firewall.allowedUDPPorts = [53317];
|
||||||
|
|
||||||
programs.adb.enable = true;
|
programs.adb.enable = true;
|
||||||
programs.localsend.enable = true;
|
|
||||||
programs.seahorse.enable = true;
|
programs.seahorse.enable = true;
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
programs.kdeconnect = {
|
programs.kdeconnect = {
|
||||||
|
|
Loading…
Reference in a new issue