Commit 6ffd5548ebcb

Vincent Demeester <vincent@sbr.pm>
2024-09-16 18:05:24
hosts: add aion
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent f587225
Changed files (5)
ops/hosts.toml
@@ -64,6 +64,9 @@ ssh = { pubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILtEnw+3WMa9ESRyKdBUp/OHd8
 addrs = { v4 = "10.100.0.1" }
 port = 51820
 
+[hosts.aion]
+addrs = { v4 = "192.168.1.49" }
+
 [hosts.athena]
 addrs = { v4 = "192.168.1.183" }
 
secrets/db.192.168.1
@@ -18,6 +18,7 @@ $TTL    604800
 20 IN PTR synodine.home.
 77 IN PTR wakasu.home.
 23 IN PTR aomi.home.
+49 IN PTR aion.home.
 24 IN PTR shikoku.home.
 182 IN PTR demeter.home.
 182 IN PTR ns1.home.
secrets/db.home
@@ -25,6 +25,8 @@ wakasu.home. IN A 192.168.1.77
 *.wakasu.home IN A 192.168.1.77
 aomi.home. IN A 192.168.1.23
 *.aomi.home. IN A 192.168.1.23
+aion.home. IN A 192.168.1.49
+*.aion.home. IN A 192.168.1.49
 shikoku.home. IN A 192.168.1.24
 *.shikoku.home. IN A 192.168.1.24
 athena.home. IN A 192.168.1.183
secrets/machines.nix
@@ -15,6 +15,7 @@ let
   home = {
     ips = {
       aomi = "192.168.1.23";
+      aion = "192.168.1.49";
       dev = "192.168.1.60";
       hokkaido = "192.168.1.115";
       honshu = "192.168.1.17";
@@ -170,6 +171,10 @@ in
       hostname = "${home.ips.aomi}";
       remoteForwards = [ gpgRemoteForward gpgSSHRemoteForward ];
     };
+    "aion.home" = {
+      hostname = "${home.ips.aion}";
+      remoteForwards = [ gpgRemoteForward gpgSSHRemoteForward ];
+    };
     "aomi.vpn" = {
       hostname = "${wireguard.ips.aomi}";
       remoteForwards = [ gpgRemoteForward gpgSSHRemoteForward ];
systems/modules/profiles/home.nix
@@ -17,6 +17,7 @@ in
       domain = "home";
       hosts = with machines; mkIf secretCondition {
         "${home.ips.honshu}" = [ "honshu.home" ];
+        "${home.ips.aion}" = [ "aion.home" ];
         "${home.ips.aomi}" = [ "aomi.home" ];
         "${wireguard.ips.aomi}" = [ "aomi.vpn" ];
         "${home.ips.shikoku}" = [ "shikoku.home" ];
@@ -51,6 +52,12 @@ in
         fsType = "nfs";
         options = [ "x-systemd.automount" "noauto" ];
       };
+      # FIXME(vdemeester): I think it acts like this because there is only one export
+      "/net/aion.home/export" = {
+        device = "${machines.home.ips.aion}:/";
+        fsType = "nfs";
+        options = [ "x-systemd.automount" "noauto" ];
+      };
     };
   };
 }