Update Cfg and add proxy/wsl
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
{ config, ... }: {
|
||||
{ lib, config, ... }: {
|
||||
networking = {
|
||||
hostName = config.syscfg.hostname;
|
||||
useDHCP = true;
|
||||
nameservers = [ "1.1.1.1" "9.9.9.9" ];
|
||||
|
||||
extraHosts = ''
|
||||
${lib.concatStringsSep "\n" config.syscfg.extra.hosts}
|
||||
'';
|
||||
|
||||
proxy = lib.mkIf (config.syscfg.extra.proxy.domain != "") {
|
||||
default = "http://${config.syscfg.extra.proxy.domain}:${config.syscfg.extra.proxy.port or "8080"}";
|
||||
noProxy = "${config.syscfg.extra.proxy.noProxy}";
|
||||
};
|
||||
|
||||
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedUDPPorts =
|
||||
|
||||
Reference in New Issue
Block a user