Compare commits

..

No commits in common. "95455594ee921ccd89aa7da77e3bdc86a67df537" and "2ed07e556441a6753e1b711185ae6099d26911a1" have entirely different histories.

4 changed files with 12 additions and 12 deletions

View file

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

View file

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

View file

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

View file

@ -88,12 +88,12 @@ in {
}; };
"cpu" = { "cpu" = {
interval = 1; interval = 3;
on-click = "kitty btop &"; on-click = "kitty btop &";
}; };
"memory" = { "memory" = {
interval = 1; interval = 3;
on-click = "kitty btop &"; on-click = "kitty btop &";
}; };
@ -102,7 +102,7 @@ in {
}; };
"network" = { "network" = {
interval = 1; interval = 3;
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 = 1; interval = 3;
format-icons = ["󰁻" "󰁽" "󰁿" "󰂁" "󰁹"]; format-icons = ["󰁻" "󰁽" "󰁿" "󰂁" "󰁹"];
states = { states = {
critical = 15; critical = 15;