From 1bca91dbda026d606741bf9a979b53fb7a413578 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Wed, 18 Jan 2023 16:08:29 -0500 Subject: [PATCH] change default darkhttpd port --- modules/cli/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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";