home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

commit 6ffd5548ebcbbf6e27ba93fd3f88264a4275c4cb
parent f5872253a35e3a34195e45dfdc17cc6beebb10ad
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Mon, 16 Sep 2024 18:05:24 +0200

hosts: add aion

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mops/hosts.toml | 3+++
Msecrets/db.192.168.1 | 1+
Msecrets/db.home | 2++
Msecrets/machines.nix | 5+++++
Msystems/modules/profiles/home.nix | 7+++++++
5 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/ops/hosts.toml b/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" } diff --git a/secrets/db.192.168.1 b/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. diff --git a/secrets/db.home b/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 diff --git a/secrets/machines.nix b/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 ]; diff --git a/systems/modules/profiles/home.nix b/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" ]; + }; }; }; }