Networking configuration

This commit is contained in:
Alex 2021-11-02 10:45:09 +01:00
parent 077d466bcd
commit 596a1e2e5d
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1

View file

@ -12,7 +12,16 @@
prefixLength = 24; prefixLength = 24;
} }
]; ];
networking.interfaces.enp0s20u1.useDHCP = true;
# Route internet traffic via USB modem (=phone) on other computer
networking.nameservers = [ "9.9.9.9" ];
networking.defaultGateway = {
address = "192.168.1.14";
interface = "eno1";
};
# OR use USB modem plugged in here
#networking.interfaces.enp0s20u1.useDHCP = true;
# Enable nix-serve # Enable nix-serve
services.nix-serve = { services.nix-serve = {