diff --git a/modules/cli/default.nix b/modules/cli/default.nix index 12745ce..4b2a8b7 100644 --- a/modules/cli/default.nix +++ b/modules/cli/default.nix @@ -7,7 +7,6 @@ environment.systemPackages = with pkgs; [ awscli2 bat - darkhttpd dnsutils du-dust entr @@ -61,6 +60,18 @@ print(str(int(ln.split(' ')[-1])/(1024*1024*1024))[:5],'GB') '') + (darkhttpd.overrideAttrs (old: { + patches = [ + (builtins.toFile "port.patch" '' + --- a/darkhttpd.c + +++ b/darkhttpd.c + @@ -291 +291 @@ static const char *bindaddr; + -static uint16_t bindport = 8080; /* or 80 if running as root */ + +static uint16_t bindport = 8000; /* or 80 if running as root */ + '') + ]; + })) + ]; environment.variables.HTOPRC = "/dev/null";