nftables: import module and init config

keep-around/a3ff8d447e1a0a0097c56cc80554e1b6f50932f6
hexchen 2021-01-15 22:45:34 +00:00
parent d86418307f
commit c0efd41e74
4 changed files with 11 additions and 2 deletions

View File

@ -7,6 +7,7 @@ in {
../modules
./users.nix
(sources.home-manager + "/nixos")
(sources.pbb-nixfiles + "/modules/nftables")
];
boot.kernelPackages = lib.mkDefault pkgs.linuxPackages_latest;
@ -77,4 +78,6 @@ in {
services.nginx.appendHttpConfig = ''
access_log off;
'';
petabyte.nftables.enable = true;
}

View File

@ -7,7 +7,7 @@
localAddress = "192.168.100.3";
autoStart = true;
config = { config, lib, pkgs, ... }: {
networking.firewall.allowedTCPPorts = [ 3000 ];
networking.firewall.enable = false;
services.coredns = {
enable = true;
config = ''

View File

@ -11,7 +11,7 @@ in {
config = {config, pkgs, ... }: {
networking.hosts."::1" = [ "wiki.lantifa.org" ];
networking.firewall.allowedTCPPorts = [ 80 ];
networking.firewall.enable = false;
users.users.mediawiki.extraGroups = [ "keys" ];
services.mediawiki = {

View File

@ -67,5 +67,11 @@
"type": "tarball",
"url": "https://github.com/hexchen/nixpkgs/archive/b5f7683f8d7f99186dd4232f233d17ce1abd4e17.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"pbb-nixfiles": {
"ref": "main",
"repo": "https://git.petabyte.dev/petabyteboy/nixfiles.git",
"rev": "0720c5dba283d782f2f887bf97aad339137d95dc",
"type": "git"
}
}