networking: Set up static IP address

This commit is contained in:
Tristan Daniël Maat 2023-04-23 15:46:38 +01:00
parent 317cdf0039
commit acd7cc802b
Signed by: tlater
GPG key ID: 49670FD774E43268
3 changed files with 47 additions and 2 deletions
configuration

View file

@ -15,9 +15,11 @@
(import ../modules)
./services/conduit.nix
./services/foundryvtt.nix
./services/gitea.nix
./services/nextcloud.nix
./services/webserver.nix
./services/wireguard.nix
./services/starbound.nix
./services/postgres.nix
./sops.nix
@ -51,10 +53,8 @@
networking = {
hostName = "tlaternet";
usePredictableInterfaceNames = false;
useDHCP = false;
interfaces.eth0.useDHCP = true;
firewall = {
allowedTCPPorts = [
@ -95,6 +95,8 @@
};
};
systemd.network.enable = true;
time.timeZone = "Europe/London";
users.users.tlater = {