summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2023-02-27 17:57:00 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2023-02-27 17:57:00 +0100
commit7fcaba2d4cabc8d5dfd35648ec1b9b6795e490ec (patch)
tree9986fbbb3824e3b8672f6122adceb0038624ffda /hosts
parentdf4ba4d49dd53a62adc39c1d2ea887fe464ec09b (diff)
downloadnixos-7fcaba2d4cabc8d5dfd35648ec1b9b6795e490ec.tar
nixos-7fcaba2d4cabc8d5dfd35648ec1b9b6795e490ec.tar.gz
nixos-7fcaba2d4cabc8d5dfd35648ec1b9b6795e490ec.tar.bz2
nixos-7fcaba2d4cabc8d5dfd35648ec1b9b6795e490ec.tar.xz
nixos-7fcaba2d4cabc8d5dfd35648ec1b9b6795e490ec.zip
vidhar: printer
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa3
-rw-r--r--hosts/vidhar/dns/zones/yggdrasil.soa3
-rw-r--r--hosts/vidhar/network/dhcp/default.nix4
3 files changed, 8 insertions, 2 deletions
diff --git a/hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa b/hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa
index 90a26ff5..01941df6 100644
--- a/hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa
+++ b/hosts/vidhar/dns/zones/arpa.in-addr.10.141.soa
@@ -1,7 +1,7 @@
1$ORIGIN 141.10.in-addr.arpa. 1$ORIGIN 141.10.in-addr.arpa.
2$TTL 300 2$TTL 300
3@ IN SOA vidhar.lan.yggdrasil. hostmaster.yggdrasil.li ( 3@ IN SOA vidhar.lan.yggdrasil. hostmaster.yggdrasil.li (
4 2022031506 ; serial 4 2023022700 ; serial
5 300 ; refresh 5 300 ; refresh
6 300 ; retry 6 300 ; retry
7 300 ; expire 7 300 ; expire
@@ -11,6 +11,7 @@ $TTL 300
11 IN NS vidhar.lan.yggdrasil. 11 IN NS vidhar.lan.yggdrasil.
12 12
131.0 IN PTR vidhar.lan.yggdrasil. 131.0 IN PTR vidhar.lan.yggdrasil.
142.0 IN PTR printer.lan.yggdrasil.
14 15
151.1 IN PTR vidhar.mgmt.yggdrasil. 161.1 IN PTR vidhar.mgmt.yggdrasil.
162.1 IN PTR switch01.mgmt.yggdrasil. 172.1 IN PTR switch01.mgmt.yggdrasil.
diff --git a/hosts/vidhar/dns/zones/yggdrasil.soa b/hosts/vidhar/dns/zones/yggdrasil.soa
index e2e906d9..49617c80 100644
--- a/hosts/vidhar/dns/zones/yggdrasil.soa
+++ b/hosts/vidhar/dns/zones/yggdrasil.soa
@@ -1,7 +1,7 @@
1$ORIGIN yggdrasil. 1$ORIGIN yggdrasil.
2$TTL 300 2$TTL 300
3@ IN SOA vidhar.yggdrasil. hostmaster.yggdrasil.li ( 3@ IN SOA vidhar.yggdrasil. hostmaster.yggdrasil.li (
4 2022112101 ; serial 4 2023022700 ; serial
5 300 ; refresh 5 300 ; refresh
6 300 ; retry 6 300 ; retry
7 300 ; expire 7 300 ; expire
@@ -23,6 +23,7 @@ pgbackrest.surtr IN CNAME surtr.yggdrasil.
23 23
24 24
25vidhar.lan IN A 10.141.0.1 25vidhar.lan IN A 10.141.0.1
26printer.lan IN A 10.141.0.2
26 27
27vidhar.mgmt IN A 10.141.1.1 28vidhar.mgmt IN A 10.141.1.1
28switch01.mgmt IN A 10.141.1.2 29switch01.mgmt IN A 10.141.1.2
diff --git a/hosts/vidhar/network/dhcp/default.nix b/hosts/vidhar/network/dhcp/default.nix
index 1c29dc6a..af7a3545 100644
--- a/hosts/vidhar/network/dhcp/default.nix
+++ b/hosts/vidhar/network/dhcp/default.nix
@@ -108,6 +108,10 @@ with lib;
108 { hostname = "geri"; 108 { hostname = "geri";
109 hw-address = "0e:e6:43:5e:37:7b"; 109 hw-address = "0e:e6:43:5e:37:7b";
110 } 110 }
111 { hostname = "printer";
112 hw-address = "30:cd:a7:b0:55:8d";
113 ip-address = "10.141.0.2";
114 }
111 ]; 115 ];
112 } 116 }
113 { subnet = "10.141.1.0/24"; 117 { subnet = "10.141.1.0/24";