summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bragi.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/bragi.nix b/bragi.nix
index 69a795dd..f2c6af00 100644
--- a/bragi.nix
+++ b/bragi.nix
@@ -227,6 +227,8 @@ in rec {
227 setSendmail = true; 227 setSendmail = true;
228 }; 228 };
229 229
230 networking.domain = "bragisheimr.yggdrasil";
231
230 services.dhcpd4 = { 232 services.dhcpd4 = {
231 enable = true; 233 enable = true;
232 interfaces = [ "enp1s0" 234 interfaces = [ "enp1s0"
@@ -234,7 +236,7 @@ in rec {
234 extraConfig = '' 236 extraConfig = ''
235 option subnet-mask 255.255.255.0; 237 option subnet-mask 255.255.255.0;
236 option domain-name-servers 10.141.1.1, 8.8.8.8, 8.8.4.4; 238 option domain-name-servers 10.141.1.1, 8.8.8.8, 8.8.4.4;
237 option domain-name "bragisheimr.yggdrasil"; 239 option domain-name "${networking.domain}";
238 option routers 10.141.4.1; 240 option routers 10.141.4.1;
239 subnet 10.141.4.0 netmask 255.255.255.0 { 241 subnet 10.141.4.0 netmask 255.255.255.0 {
240 range 10.141.4.100 10.141.4.254; 242 range 10.141.4.100 10.141.4.254;