mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
change default darkhttpd port
This commit is contained in:
parent
5293338dda
commit
1bca91dbda
1 changed files with 12 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue