This commit is contained in:
Alexander Bantyev 2020-05-12 15:06:45 +03:00
parent 02712e1aa1
commit 960729f6e5
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 13 additions and 11 deletions

View File

@ -2,8 +2,8 @@
let
weechat-matrix = pkgs.weechatScripts.weechat-matrix.overrideAttrs (_: {
src = pkgs.fetchzip {
url = "https://github.com/balsoft/weechat-matrix/archive/feat/enable-replies.tar.gz";
sha256 = "sha256-GdUu/dfFy8bcEF2plon9/c+9zh9nqfAqKQd8cuUT4PE=";
url = "https://github.com/myii/weechat-matrix/archive/feat/enable-replies.tar.gz";
sha256 = "sha256-KeTfSdwVosouJwz0aZARKdxNERmFWl96Dl1ps0kbBy4=";
};
});
weechat = pkgs.weechat.override {

View File

@ -1,17 +1,19 @@
{ pkgs, lib, config, ... }: {
{ pkgs, lib, config, ... }:
let
localRanges = [
{ from = 1714; to = 1764; } # KDE connect
{ from = 6600; to = 6600; } # Mopidy
];
in {
networking = {
networkmanager.enable = true;
firewall = {
enable = true;
allowedTCPPorts = [ 13748 13722 5000 22 80 443 ];
interfaces.wlan0.allowedTCPPortRanges = [{
from = 1714;
to = 1764;
}];
interfaces.wlan0.allowedUDPPortRanges = [{
from = 1714;
to = 1764;
}];
interfaces.wlan0.allowedTCPPortRanges = localRanges;
interfaces.wlan0.allowedUDPPortRanges = localRanges;
interfaces.eth0.allowedUDPPortRanges = localRanges;
interfaces.eth0.allowedTCPPortRanges = localRanges;
};
resolvconf.extraConfig = ''
local_nameservers=""