Add floating IP address

This commit is contained in:
Oliver Davies 2025-01-10 00:09:51 +00:00
parent f982861233
commit 48ab2b7cab
2 changed files with 20 additions and 5 deletions

View file

@ -12,6 +12,7 @@
./disks.nix ./disks.nix
./hardware-configuration.nix ./hardware-configuration.nix
./networking.nix
./secrets.nix ./secrets.nix
./security ./security
./services ./services
@ -27,11 +28,6 @@
nixPath = [ "nixpkgs=${inputs.nixpkgs-2405}" ]; nixPath = [ "nixpkgs=${inputs.nixpkgs-2405}" ];
}; };
networking.firewall.allowedTCPPorts = [
80
443
];
boot.loader.grub = { boot.loader.grub = {
efiSupport = true; efiSupport = true;
efiInstallAsRemovable = true; efiInstallAsRemovable = true;

View file

@ -0,0 +1,19 @@
{
networking = {
firewall.allowedTCPPorts = [
80
443
];
interfaces.enp1s0 = {
useDHCP = true;
ipv4.addresses = [
{
address = "116.203.11.255";
prefixLength = 32;
}
];
};
};
}