Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nifoc committed Sep 4, 2023
1 parent e0d3dda commit f5bbd84
Show file tree
Hide file tree
Showing 16 changed files with 190 additions and 32 deletions.
2 changes: 1 addition & 1 deletion container/proxitok/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
];

systemd.tmpfiles.rules = [
"d /etc/container-proxitok/cache 0755 33 33"
"d /etc/container-proxitok/cache 0755 nobody nogroup"
];

services.redis.servers.proxitok = {
Expand Down
30 changes: 15 additions & 15 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion hardware/hosts/argon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
kernel.sysctl = {
"net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr";
"net.ipv4.tcp_syncookies" = 0;
"net.ipv4.tcp_syncookies" = 1;
"net.ipv4.tcp_timestamps" = 1;
"net.ipv4.tcp_window_scaling" = 1;
"net.ipv4.tcp_fastopen" = 3;
"net.core.rmem_max" = 2500000;
"net.core.wmem_max" = 2500000;
};
Expand Down
4 changes: 3 additions & 1 deletion hardware/hosts/mediaserver.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
kernel.sysctl = {
"net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr";
"net.ipv4.tcp_syncookies" = 0;
"net.ipv4.tcp_syncookies" = 1;
"net.ipv4.tcp_timestamps" = 1;
"net.ipv4.tcp_window_scaling" = 1;
"net.ipv4.tcp_fastopen" = 3;
"net.core.rmem_max" = 2500000;
"net.core.wmem_max" = 2500000;
};
};

Expand Down
3 changes: 2 additions & 1 deletion hardware/hosts/tanker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
kernel.sysctl = {
"net.core.default_qdisc" = "fq";
"net.ipv4.tcp_congestion_control" = "bbr";
"net.ipv4.tcp_syncookies" = 0;
"net.ipv4.tcp_syncookies" = 1;
"net.ipv4.tcp_timestamps" = 1;
"net.ipv4.tcp_window_scaling" = 1;
"net.ipv4.tcp_fastopen" = 3;
"net.core.rmem_max" = 2500000;
"vm.overcommit_memory" = 1;
};
Expand Down
16 changes: 8 additions & 8 deletions home/programs/nvim/plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,12 @@ in
};
nvim-treesitter = buildVimPluginFrom2Nix {
pname = "nvim-treesitter";
version = "2023-09-02";
version = "2023-09-04";
src = fetchFromGitHub {
owner = "nvim-treesitter";
repo = "nvim-treesitter";
rev = "17b943e7c5cc2b2db3ac7b5720fbd42e75a00d8d";
sha256 = "03yq7pn0vz93xjjrs6cbypqvqxncxgsadmrvgkx177c3w146w0zl";
rev = "30604fd7dde5abcba7ca8f5761894dfa61febe51";
sha256 = "0mzl92jdgdjr36gy58pvdsca91k0lxf6pzcf3cw86h01rai2lmfg";
fetchSubmodules = false;
};
};
Expand Down Expand Up @@ -162,12 +162,12 @@ in
};
telescope-nvim = buildVimPluginFrom2Nix {
pname = "telescope.nvim";
version = "2023-09-03";
version = "2023-09-04";
src = fetchFromGitHub {
owner = "nvim-telescope";
repo = "telescope.nvim";
rev = "3fae9c1e14910e6669bb8ecbb473aba6a9e13b33";
sha256 = "0mh0f9wzfdh3vjv52i9h883s8i0zl4qgm3f3ykbi81ah4x25banp";
rev = "6b79d7a6a45adc1508a7afee5bc973173ec22f59";
sha256 = "15lr5b7922w6wrzky0gy5sgscmw5axvhyajkfdqgrlpl98acqfgp";
fetchSubmodules = false;
};
};
Expand Down Expand Up @@ -521,8 +521,8 @@ in
src = fetchFromGitHub {
owner = "rebelot";
repo = "heirline.nvim";
rev = "033b35355852daa8b0e0f55dc346a06b303281e6";
sha256 = "0hzaznj54lw17zzsy3w9wnqxpd8l0avxj8lwp01sf325jvmlxvkg";
rev = "7f1e805dfc001d5dbb7d894105063f463f6c7dcc";
sha256 = "1hy5a30pb0cv93dh796lh08p5k43b4b732sr4ka0pwj4n4a3q82r";
fetchSubmodules = false;
};
};
Expand Down
1 change: 1 addition & 0 deletions system/hosts/argon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ in

../nixos/acme-argon.nix
../nixos/nginx.nix
../nixos/nginx-argon.nix

(import ../nixos/adguardhome.nix (args // { inherit secret; }))

Expand Down
1 change: 1 addition & 0 deletions system/hosts/mediaserver.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ in

../nixos/acme-mediaserver.nix
../nixos/nginx.nix
../nixos/nginx-mediaserver.nix
../nixos/postgresql.nix

(import ../nixos/adguardhome.nix (args // { inherit secret; }))
Expand Down
1 change: 1 addition & 0 deletions system/hosts/tanker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ in

../nixos/acme-tanker.nix
../nixos/nginx.nix
../nixos/nginx-tanker.nix
../nixos/postgresql.nix
../nixos/elasticsearch.nix
../nixos/mosquitto.nix
Expand Down
13 changes: 11 additions & 2 deletions system/nixos/adguardhome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,26 @@
addr = "0.0.0.0";
port = 9053;
ssl = true;
extraParameters = [
"fastopen=63"
"backlog=1023"
"deferred"
];
}

{
addr = "[::0]";
port = 9053;
ssl = true;
extraParameters = [
"fastopen=63"
"backlog=1023"
"deferred"
];
}
];

quic = true;
http3 = true;
quic = false;

onlySSL = true;
useACMEHost = "internal.kempkens.network";
Expand Down
4 changes: 2 additions & 2 deletions system/nixos/home-proxy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
}
server {
listen *:${builtins.toString secret.nginx.upstream.video.externalPort};
listen [::]:${builtins.toString secret.nginx.upstream.video.externalPort};
listen *:${builtins.toString secret.nginx.upstream.video.externalPort} fastopen=63 backlog=1023;
listen [::]:${builtins.toString secret.nginx.upstream.video.externalPort} fastopen=63 backlog=1023;
proxy_protocol on;
proxy_pass video;
Expand Down
9 changes: 8 additions & 1 deletion system/nixos/jellyfin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,17 @@
addr = "0.0.0.0";
port = 9921;
ssl = true;
extraParameters = [ "proxy_protocol" ];
extraParameters = [
"proxy_protocol"
"fastopen=63"
"backlog=1023"
"deferred"
];
}
];

quic = false;

onlySSL = true;
useACMEHost = "internal.kempkens.network";

Expand Down
24 changes: 24 additions & 0 deletions system/nixos/libreddit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,31 @@
};

services.nginx.virtualHosts."${secret.nginx.hostnames.libreddit}" = {
# listen = [
# {
# addr = "100.108.165.26";
# port = 443;
# ssl = true;
# extraParameters = [
# "fastopen=63"
# "backlog=1023"
# "deferred"
# ];
# }
#
# {
# addr = "[fd7a:115c:a1e0:ab12:4843:cd96:626c:a51a]";
# port = 443;
# ssl = true;
# extraParameters = [
# "fastopen=63"
# "backlog=1023"
# ];
# }
# ];

listenAddresses = [ "100.108.165.26" "[fd7a:115c:a1e0:ab12:4843:cd96:626c:a51a]" ];

quic = true;
http3 = true;

Expand Down
37 changes: 37 additions & 0 deletions system/nixos/nginx-argon.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
services.nginx.virtualHosts."default.internal.kempkens.network" = {
listen = [
{
addr = "0.0.0.0";
port = 443;
ssl = true;
extraParameters = [
"fastopen=63"
"backlog=1023"
"deferred"
];
}

{
addr = "[::0]";
port = 443;
ssl = true;
extraParameters = [
"fastopen=63"
"backlog=1023"
"deferred"
];
}
];

default = true;
quic = false;

onlySSL = true;
useACMEHost = "internal.kempkens.network";

locations."/" = {
return = "418";
};
};
}
37 changes: 37 additions & 0 deletions system/nixos/nginx-mediaserver.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
services.nginx.virtualHosts."default.internal.kempkens.network" = {
listen = [
{
addr = "0.0.0.0";
port = 443;
ssl = true;
extraParameters = [
"fastopen=63"
"backlog=1023"
"deferred"
];
}

{
addr = "[::0]";
port = 443;
ssl = true;
extraParameters = [
"fastopen=63"
"backlog=1023"
"deferred"
];
}
];

default = true;
quic = false;

onlySSL = true;
useACMEHost = "internal.kempkens.network";

locations."/" = {
return = "418";
};
};
}
37 changes: 37 additions & 0 deletions system/nixos/nginx-tanker.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
services.nginx.virtualHosts."default.kempkens.io" = {
listen = [
{
addr = "0.0.0.0";
port = 443;
ssl = true;
extraParameters = [
"fastopen=63"
"backlog=1023"
"deferred"
];
}

{
addr = "[::0]";
port = 443;
ssl = true;
extraParameters = [
"fastopen=63"
"backlog=1023"
"deferred"
];
}
];

default = true;
quic = false;

onlySSL = true;
useACMEHost = "kempkens.io";

locations."/" = {
return = "418";
};
};
}

0 comments on commit f5bbd84

Please sign in to comment.