From 47eb81f1503df6a1919738326d1c468c5b942a8a Mon Sep 17 00:00:00 2001 From: kat witch Date: Sat, 4 Sep 2021 17:53:20 +0100 Subject: [PATCH] hosts/athame: move from targets infra to athame, add roundcube --- config/hosts/athame/nixos.nix | 1 + config/services/roundcube/default.nix | 13 +++++++++++++ config/targets/infra.nix | 7 ------- 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 config/services/roundcube/default.nix delete mode 100644 config/targets/infra.nix diff --git a/config/hosts/athame/nixos.nix b/config/hosts/athame/nixos.nix index b4b7ae44..0e3ec32b 100644 --- a/config/hosts/athame/nixos.nix +++ b/config/hosts/athame/nixos.nix @@ -19,6 +19,7 @@ with lib; services.postgres services.radicale services.restic + services.roundcube services.syncplay services.taskserver services.vaultwarden diff --git a/config/services/roundcube/default.nix b/config/services/roundcube/default.nix new file mode 100644 index 00000000..0c63ca85 --- /dev/null +++ b/config/services/roundcube/default.nix @@ -0,0 +1,13 @@ +{ config, ... }: { + services.roundcube = { + enable = true; + hostName = "mail.${config.network.dns.domain}"; + }; + + + deploy.tf.dns.records.services_roundcube = { + inherit (config.network.dns) zone; + domain = "mail"; + cname = { inherit (config.network.addresses.public) target; }; + }; +} diff --git a/config/targets/infra.nix b/config/targets/infra.nix deleted file mode 100644 index 4a3b68a0..00000000 --- a/config/targets/infra.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, ... }: - -{ - deploy.targets.infra = { - nodeNames = [ "athame" ]; - }; -}