diff options
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/vidhar/default.nix | 12 |
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; |