summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-08-03 17:36:05 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-08-03 17:36:05 +0200
commit9287758fa6cdf4d59416ebce83d0a2d0eee61a3a (patch)
treeb32d69ac70d7b705a0e2460646fad478ba5b30de
parentceb3988424b9676af7da7cd35483e3f751cfcb1e (diff)
downloadnixos-9287758fa6cdf4d59416ebce83d0a2d0eee61a3a.tar
nixos-9287758fa6cdf4d59416ebce83d0a2d0eee61a3a.tar.gz
nixos-9287758fa6cdf4d59416ebce83d0a2d0eee61a3a.tar.bz2
nixos-9287758fa6cdf4d59416ebce83d0a2d0eee61a3a.tar.xz
nixos-9287758fa6cdf4d59416ebce83d0a2d0eee61a3a.zip
vidhar: static networking
-rw-r--r--hosts/vidhar/default.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix
index 25f37133..67d7d442 100644
--- a/hosts/vidhar/default.nix
+++ b/hosts/vidhar/default.nix
@@ -65,7 +65,12 @@
65 useDHCP = false; 65 useDHCP = false;
66 useNetworkd = true; 66 useNetworkd = true;
67 67
68 interfaces."eno1".useDHCP = true; 68 defaultGateway = { address = "192.168.2.1"; };
69 interfaces."eno1" = {
70 ipv4.addresses = [
71 { address = "192.168.2.168"; prefixLength = 24; }
72 ];
73 };
69 74
70 firewall = { 75 firewall = {
71 enable = true; 76 enable = true;
@@ -78,6 +83,11 @@
78 ]; 83 ];
79 }; 84 };
80 }; 85 };
86 systemd.network.networks."40-eno1".networkConfig = {
87 Domains = lib.mkForce "~.";
88 DNS = [ "192.168.2.1" ];
89 };
90
81 services.timesyncd.enable = false; 91 services.timesyncd.enable = false;
82 services.chrony = { 92 services.chrony = {
83 enable = true; 93 enable = true;