Compare commits

..

2 commits

Author SHA1 Message Date
95455594ee increase update speed 2026-02-17 17:43:11 +01:00
5acce8f41a Change forgejo ssh port 2026-02-17 17:42:47 +01:00
4 changed files with 12 additions and 12 deletions

View file

@ -8,6 +8,4 @@
horseman.stateVersion = "24.11";
networking.hostName = "solis";
networking.firewall.allowedTCPPorts = [3000 3001];
}

View file

@ -1,6 +1,4 @@
{
inputs,
outputs,
lib,
config,
pkgs,
@ -23,7 +21,7 @@ in {
};
sshPort = mkOption {
default = 34916;
default = 16718;
type = types.int;
};

View file

@ -27,10 +27,14 @@ in {
services.nginx = {
enable = true;
streamConfig = ''
# forwards SSH traffic to the git instance
streamConfig = let
port = toString config.horseman.containers.forgejo.sshPort;
addr = config.containers.forgejo.localAddress;
in ''
server {
listen ${toString config.horseman.containers.forgejo.sshPort};
proxy_pass ${config.containers.forgejo.localAddress}:${toString config.horseman.containers.forgejo.sshPort};
listen ${port};
proxy_pass ${addr}:${port};
}
'';

View file

@ -88,12 +88,12 @@ in {
};
"cpu" = {
interval = 3;
interval = 1;
on-click = "kitty btop &";
};
"memory" = {
interval = 3;
interval = 1;
on-click = "kitty btop &";
};
@ -102,7 +102,7 @@ in {
};
"network" = {
interval = 3;
interval = 1;
tooltip-format = " {bandwidthDownBits} , {bandwidthDownBits} ";
tooltip-format-wifi = "{essid}: {bandwidthDownBits} , {bandwidthDownBits} ";
@ -110,7 +110,7 @@ in {
};
"battery" = {
interval = 3;
interval = 1;
format-icons = ["󰁻" "󰁽" "󰁿" "󰂁" "󰁹"];
states = {
critical = 15;