Compare commits
No commits in common. "95455594ee921ccd89aa7da77e3bdc86a67df537" and "2ed07e556441a6753e1b711185ae6099d26911a1" have entirely different histories.
95455594ee
...
2ed07e5564
4 changed files with 12 additions and 12 deletions
|
|
@ -8,4 +8,6 @@
|
|||
horseman.stateVersion = "24.11";
|
||||
|
||||
networking.hostName = "solis";
|
||||
|
||||
networking.firewall.allowedTCPPorts = [3000 3001];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
{
|
||||
inputs,
|
||||
outputs,
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
|
|
@ -21,7 +23,7 @@ in {
|
|||
};
|
||||
|
||||
sshPort = mkOption {
|
||||
default = 16718;
|
||||
default = 34916;
|
||||
type = types.int;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -27,14 +27,10 @@ in {
|
|||
services.nginx = {
|
||||
enable = true;
|
||||
|
||||
# forwards SSH traffic to the git instance
|
||||
streamConfig = let
|
||||
port = toString config.horseman.containers.forgejo.sshPort;
|
||||
addr = config.containers.forgejo.localAddress;
|
||||
in ''
|
||||
streamConfig = ''
|
||||
server {
|
||||
listen ${port};
|
||||
proxy_pass ${addr}:${port};
|
||||
listen ${toString config.horseman.containers.forgejo.sshPort};
|
||||
proxy_pass ${config.containers.forgejo.localAddress}:${toString config.horseman.containers.forgejo.sshPort};
|
||||
}
|
||||
'';
|
||||
|
||||
|
|
|
|||
|
|
@ -88,12 +88,12 @@ in {
|
|||
};
|
||||
|
||||
"cpu" = {
|
||||
interval = 1;
|
||||
interval = 3;
|
||||
on-click = "kitty btop &";
|
||||
};
|
||||
|
||||
"memory" = {
|
||||
interval = 1;
|
||||
interval = 3;
|
||||
on-click = "kitty btop &";
|
||||
};
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ in {
|
|||
};
|
||||
|
||||
"network" = {
|
||||
interval = 1;
|
||||
interval = 3;
|
||||
|
||||
tooltip-format = " {bandwidthDownBits} , {bandwidthDownBits} ";
|
||||
tooltip-format-wifi = "{essid}: {bandwidthDownBits} , {bandwidthDownBits} ";
|
||||
|
|
@ -110,7 +110,7 @@ in {
|
|||
};
|
||||
|
||||
"battery" = {
|
||||
interval = 1;
|
||||
interval = 3;
|
||||
format-icons = ["" "" "" "" ""];
|
||||
states = {
|
||||
critical = 15;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue