nixos: cleanup

This commit is contained in:
Guanran Wang 2024-07-25 00:53:10 +08:00
parent 288677bdbd
commit cf994fa73b
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
3 changed files with 7 additions and 13 deletions

View file

@ -30,9 +30,6 @@
localsend
];
networking.firewall.allowedTCPPorts = [53317];
networking.firewall.allowedUDPPorts = [53317];
programs.adb.enable = true;
programs.anime-game-launcher.enable = true;
programs.seahorse.enable = true;

View file

@ -47,7 +47,7 @@
};
######## Services
environment.systemPackages = with pkgs; [qbittorrent];
environment.systemPackages = with pkgs; [qbittorrent-nox];
services.tailscale = {
enable = true;
@ -60,14 +60,11 @@
"6222a3e0-98da-4325-be19-0f86a7318a41" = {
credentialsFile = config.sops.secrets."cloudflared/secret".path;
default = "http_status:404";
ingress = {
# TODO: is this safe?
# browser <-> cloudflare cdn <-> cloudflared <-> caddy <-> mastodon
# ^ no tls in this part?
"mastodon.ny4.dev" = "http://localhost:80";
"matrix.ny4.dev" = "http://localhost:80";
"syncv3.ny4.dev" = "http://localhost:80";
};
ingress = lib.genAttrs [
"mastodon.ny4.dev"
"matrix.ny4.dev"
"syncv3.ny4.dev"
] (_: "http://localhost");
};
};
};

View file

@ -27,13 +27,13 @@
environment.systemPackages = with pkgs; [
yubikey-manager
localsend
];
networking.firewall.allowedTCPPorts = [53317];
networking.firewall.allowedUDPPorts = [53317];
programs.adb.enable = true;
programs.localsend.enable = true;
programs.seahorse.enable = true;
programs.steam.enable = true;
programs.kdeconnect = {