staging(no atomic commits thank to git-hooks)
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
parent
db3b60a846
commit
c5f949506a
117 changed files with 2520 additions and 999 deletions
|
|
@ -1,17 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
networking = {
|
||||
defaultGateway = lib.mkIf (config.networking.hostName == "mel") {
|
||||
address = "45.11.229.1";
|
||||
interface = "ens3";
|
||||
};
|
||||
|
||||
defaultGateway6 = lib.mkIf (config.networking.hostName == "mel") {
|
||||
address = "2a0e:97c0:3e3:2Oa::1";
|
||||
interface = "ens3";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,11 +1,8 @@
|
|||
_: {
|
||||
networking = {
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowPing = true;
|
||||
checkReversePath = false;
|
||||
enable = false;
|
||||
};
|
||||
|
||||
useNetworkd = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,57 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
networking = {
|
||||
firewall = {
|
||||
interfaces = {
|
||||
ens3 = {
|
||||
allowedUDPPorts =
|
||||
[
|
||||
53580
|
||||
53590
|
||||
]
|
||||
++ lib.optionals (config.networking.hostName == "hazel") [
|
||||
443
|
||||
|
||||
25565
|
||||
|
||||
24
|
||||
25
|
||||
110
|
||||
143
|
||||
465
|
||||
587
|
||||
993
|
||||
995
|
||||
4190
|
||||
53570
|
||||
];
|
||||
|
||||
allowedTCPPorts =
|
||||
[
|
||||
53580
|
||||
53590
|
||||
]
|
||||
++ lib.optionals (config.networking.hostName == "hazel") [
|
||||
443
|
||||
|
||||
25565
|
||||
|
||||
24
|
||||
25
|
||||
110
|
||||
143
|
||||
465
|
||||
587
|
||||
993
|
||||
995
|
||||
4190
|
||||
53570
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
_: {
|
||||
{name, ...}: {
|
||||
networking = {
|
||||
hostName = "kyra";
|
||||
hostName = name;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,36 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
networking = {
|
||||
interfaces = {
|
||||
ens3 = {
|
||||
ipv4 = {
|
||||
addresses = lib.optionals (config.networking.hostName == "mel") [
|
||||
{
|
||||
address = "45.11.229.254";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
ipv6 = {
|
||||
addresses =
|
||||
lib.optionals (config.networking.hostName == "hazel") [
|
||||
{
|
||||
address = "2a03:6f01:1:2::cb1e";
|
||||
prefixLength = 64;
|
||||
}
|
||||
]
|
||||
++ lib.optionals (config.networking.hostName == "mel") [
|
||||
{
|
||||
address = "2a0e:97c0:3e3:2Oa::1";
|
||||
prefixLength = 64;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
7
kyra/networking/nftables.nix
Normal file
7
kyra/networking/nftables.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
_: {
|
||||
networking = {
|
||||
nftables = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue