Compare commits

..

No commits in common. "55220177d25283640199582b933a0b6ab578ee62" and "69e69c2b7fd77f5584c393335db9ae7643681a13" have entirely different histories.

3 changed files with 52 additions and 53 deletions

View file

@ -14,7 +14,7 @@ in
{
imports = [
self.nixosModules.default
"${modulesPath}/virtualisation/lxc-container.nix"
# "${modulesPath}/virtualisation/lxc-container.nix"
];
services.arma.enable = true;

View file

@ -1,17 +1,14 @@
{
# lib,
# pkgs,
# config,
lib,
pkgs,
config,
...
}:
{
networking.nftables = {
enable = true;
tables = {
yggSsh = {
name = "yggSsh";
family = "inet";
content = ''
ruleset = ''
table inet filter {
chain input {
type filter hook input priority filter; policy accept;
ct state related,established accept
@ -30,8 +27,7 @@
chain output {
type filter hook output priority filter; policy accept;
}
}
'';
};
};
};
}

View file

@ -1,17 +1,9 @@
{
lib,
config,
pkgs,
...
}:
{
options.iscontainer.enable = lib.mkEnableOption "iscontainer" // {
default = true;
};
config = lib.mkIf config.iscontainer.enable {
systemd.network = {
enable = true;
networks."50-eth0" = {
matchConfig.Name = "eth0";
networkConfig = {
DHCP = "ipv4";
@ -22,10 +14,21 @@
};
networking = {
# firewall = {
firewall.enable = false;
# interfaces = {
# ygg0 = {
# allowedTCPPorts = [ 22 ];
# allowedUDPPorts = [ ];
# };
# };
# # Default deny policy for all interfaces (including ygg0)
# allowedTCPPorts = [ ];
# allowedUDPPorts = [ ];
# };
dhcpcd.enable = false;
useDHCP = false;
useHostResolvConf = false;
};
};
}