mirror of
https://github.com/davegallant/nix-config
synced 2025-08-05 14:43:39 +00:00
Cleanup more networking
This commit is contained in:
@@ -7,13 +7,15 @@
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "hephaestus"; # Define your hostname.
|
||||
networking.hostName = "hephaestus";
|
||||
|
||||
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
||||
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
||||
# replicates the default behaviour.
|
||||
networking.useDHCP = false;
|
||||
networking.interfaces.enp34s0.useDHCP = true;
|
||||
networking = {
|
||||
interfaces.enp34s0 = { useDHCP = true; };
|
||||
defaultGateway = {
|
||||
address = "192.168.0.1";
|
||||
interface = "enp34s0";
|
||||
};
|
||||
};
|
||||
|
||||
# Enable the OpenSSH server.
|
||||
services.sshd.enable = true;
|
||||
|
@@ -7,12 +7,8 @@
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
networking.hostName = "hermes"; # Define your hostname.
|
||||
networking.hostName = "hermes";
|
||||
|
||||
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
||||
# Per-interface useDHCP will be mandatory in the future, so this generated config
|
||||
# replicates the default behaviour.
|
||||
networking.useDHCP = false;
|
||||
networking.interfaces.wlp61s0.useDHCP = true;
|
||||
|
||||
}
|
||||
|
@@ -3,9 +3,11 @@
|
||||
{
|
||||
services.tailscale.enable = true;
|
||||
|
||||
networking.firewall = {
|
||||
allowPing = false;
|
||||
enable = true;
|
||||
trustedInterfaces = [ "tailscale0" ];
|
||||
networking = {
|
||||
firewall = {
|
||||
allowPing = false;
|
||||
enable = true;
|
||||
trustedInterfaces = [ "tailscale0" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user