Updated firewall settings

This commit is contained in:
Serĉanto de Scio 2019-07-03 22:59:30 +10:00
parent b6c40babfb
commit 4c7b90f0f1
Signed by: sercanto
GPG key ID: A4122FF3971B6865

View file

@ -5,34 +5,39 @@
description = "Linode servers"; description = "Linode servers";
}; };
defaults = { defaults =
imports = { config, pkgs, lib, ... }:
[
../Hardware/linode_vm.nix {
../Deployments/host_common.nix imports =
[
../Hardware/linode_vm.nix
../Deployments/host_common.nix
];
# Ensure the right package architecture is used
nixpkgs.localSystem = {
system = "x86_64-linux";
config = "x86_64-unknown-linux-gnu";
allowUnfree = true;
};
# Tools that Linode support like to have install if you need them.
environment.systemPackages = with pkgs; [
inetutils
mtr
sysstat
]; ];
# Ensure the right package architecture is used # Configure firewall defaults:
nixpkgs.localSystem = { networking = {
system = "x86_64-linux"; usePredictableInterfaceNames = false; # As per Linode's networking guidlines
config = "x86_64-unknown-linux-gnu"; domain = "mcwhirter.io";
allowUnfree = true; firewall = {
}; enable = true;
allowedTCPPorts = [ ];
# Tools that Linode support like to have install if you need them. trustedInterfaces = [ "lo" ];
environment.systemPackages = with pkgs; [ };
inetutils
mtr
sysstat
];
# Configure firewall defaults:
networking = {
usePredictableInterfaces = false; # As per Linode's networking guidlines
firewall = {
enable = true;
allowedTCPPorts = [ 22 ];
trustedInterfaces = [ "lo" ];
}; };
}; };