Add floating IP address
This commit is contained in:
parent
f982861233
commit
48ab2b7cab
|
@ -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;
|
||||||
|
|
19
nix/hosts/hetznix/networking.nix
Normal file
19
nix/hosts/hetznix/networking.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
networking = {
|
||||||
|
firewall.allowedTCPPorts = [
|
||||||
|
80
|
||||||
|
443
|
||||||
|
];
|
||||||
|
|
||||||
|
interfaces.enp1s0 = {
|
||||||
|
useDHCP = true;
|
||||||
|
|
||||||
|
ipv4.addresses = [
|
||||||
|
{
|
||||||
|
address = "116.203.11.255";
|
||||||
|
prefixLength = 32;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue