mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-01-18 13:29:32 +01:00
more irc config
This commit is contained in:
parent
f00602825b
commit
259aa1dd5e
|
@ -97,7 +97,7 @@
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
let
|
let
|
||||||
php = pkgs.php.buildEnv { extraConfig = "memory_limit = 2G"; };
|
php = pkgs.php.buildEnv { extraConfig = "memory_limit = 4G"; };
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
php
|
php
|
||||||
|
|
|
@ -30,4 +30,37 @@ in
|
||||||
|
|
||||||
users.users.${username}.initialHashedPassword = "$y$j9T$s4isXqWcg4N8TEPjmj0fD/$zog2cpUwstnvwDnQsFmH3br/WAeD2Uu/L7ePr00cKkA";
|
users.users.${username}.initialHashedPassword = "$y$j9T$s4isXqWcg4N8TEPjmj0fD/$zog2cpUwstnvwDnQsFmH3br/WAeD2Uu/L7ePr00cKkA";
|
||||||
environment.variables.EDITOR = "nvim";
|
environment.variables.EDITOR = "nvim";
|
||||||
|
|
||||||
|
services.nginx = {
|
||||||
|
enable = true;
|
||||||
|
recommendedGzipSettings = true;
|
||||||
|
recommendedOptimisation = true;
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
# You'd think this is a good idea, but Safari doesn't support 1.3 on websockets yet from my testing in 2020. If one is only using Chrome, consider it.
|
||||||
|
# sslProtocols = "TLSv1.3";
|
||||||
|
virtualHosts = {
|
||||||
|
"irc.hypervirtual.world" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
locations."^~ /weechat" = {
|
||||||
|
proxyPass = "http://127.0.0.1:9000/weechat/";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
locations."/" = {
|
||||||
|
root = pkgs.glowing-bear;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.oauth2.proxy = {
|
||||||
|
enable = true;
|
||||||
|
email.addresses = ''
|
||||||
|
# your email goes here for authorization
|
||||||
|
'';
|
||||||
|
nginx.virtualhosts = [
|
||||||
|
"irc.hypervirtual.world"
|
||||||
|
];
|
||||||
|
clientID = "";
|
||||||
|
keyFile = "";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue