Added missing config attribute.

This commit is contained in:
Raphaël Numbus
2026-02-24 22:39:35 +01:00
parent f301f48227
commit f0e304507b
3 changed files with 32 additions and 26 deletions
+2
View File
@@ -1,6 +1,7 @@
{ config, ... }: { config, ... }:
{ {
config = {
boot.initrd.systemd.enable = true; boot.initrd.systemd.enable = true;
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
@@ -8,4 +9,5 @@
boot.kernel.sysctl = { boot.kernel.sysctl = {
"vm.overcommit_memory" = 1; "vm.overcommit_memory" = 1;
}; };
};
} }
+2
View File
@@ -1,6 +1,7 @@
{ config, ... }: { config, ... }:
{ {
config = {
networking.nftables.enable = true; networking.nftables.enable = true;
networking.firewall = { networking.firewall = {
enable = true; enable = true;
@@ -8,4 +9,5 @@
allowedTCPPorts = [ 53 80 443 ]; allowedTCPPorts = [ 53 80 443 ];
allowedUDPPorts = [ 53 443 ]; allowedUDPPorts = [ 53 443 ];
}; };
};
} }
+2
View File
@@ -37,6 +37,7 @@ in
}; };
}; };
config = {
networking.hostName = "numbus-server"; networking.hostName = "numbus-server";
networking.networkmanager.enable = false; networking.networkmanager.enable = false;
@@ -55,4 +56,5 @@ in
address = "${cfg.routerIpAddress}"; address = "${cfg.routerIpAddress}";
interface = "br0"; interface = "br0";
}; };
};
} }