summaryrefslogtreecommitdiff
path: root/nixos/networking.nix
diff options
context:
space:
mode:
authorQuentin Aristote <aristote@irif.fr>2023-03-13 17:19:38 +0000
committerqaristote <quentin.aristote@ens.fr>2023-03-14 11:42:17 +0100
commit0aaf800eee5f51a78c5cda662de1834b1e02b351 (patch)
tree2687a482ceca6cf95ee5df1773626eccccd1b797 /nixos/networking.nix
parentc0d8c7ecd8b7dec6edb241b8ef3b93e7c9c330a5 (diff)
inital commit
Diffstat (limited to 'nixos/networking.nix')
-rw-r--r--nixos/networking.nix17
1 files changed, 1 insertions, 16 deletions
diff --git a/nixos/networking.nix b/nixos/networking.nix
index be4f223..367349f 100644
--- a/nixos/networking.nix
+++ b/nixos/networking.nix
@@ -12,26 +12,11 @@
};
networking = {
- hostName = "latitude-7490";
- hosts = {
- "10.3.141.1" = [ "raspberrypi.local" ];
- "192.168.1.10" = [ "dionysos.local" ];
- # "10.233.1.2" = [ "searx.aristote.fr" "quentin.aristote.fr" "aristote.fr" ];
- };
+ hostName = "latitude-7280";
interfaces = {
enp0s31f6.useDHCP = true;
wlp2s0.useDHCP = true;
};
};
-
- # NAT
- boot.kernel.sysctl = { "net.ipv4.ip_forward" = 1; };
- networking = {
- nat = {
- enable = true;
- internalInterfaces = [ "ve-+" ];
- externalInterface = "tun0";
- };
- };
}