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"; horseman.stateVersion = "24.11";
networking.hostName = "solis"; networking.hostName = "solis";
networking.firewall.allowedTCPPorts = [3000 3001];
} }

View file

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

View file

@ -27,10 +27,14 @@ in {
services.nginx = { services.nginx = {
enable = true; 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 { server {
listen ${toString config.horseman.containers.forgejo.sshPort}; listen ${port};
proxy_pass ${config.containers.forgejo.localAddress}:${toString config.horseman.containers.forgejo.sshPort}; proxy_pass ${addr}:${port};
} }
''; '';

View file

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