Move all flakes into modules/ and sep't, create deploy script for a1d2
Change-Id: Ie4d50fb8f16da193195beb139922a366b72b0b0a
diff --git a/modules/common/cloudflare-ddns.nix b/modules/common/cloudflare-ddns.nix
new file mode 100644
index 0000000..a1ebb61
--- /dev/null
+++ b/modules/common/cloudflare-ddns.nix
@@ -0,0 +1,18 @@
+{ config, ... }: {
+ services.cloudflare-dyndns = {
+ enable = true;
+ proxied = false;
+ ipv4 = true;
+ ipv6 = false;
+ domains = [ "d1.a1.crawling.us" ];
+ apiTokenFile = config.sops.secrets.cloudflare_ddns__api_token.path;
+ };
+
+ sops.secrets.cloudflare_ddns__api_token = {
+ mode = "0600";
+ owner = config.users.users.root.name;
+ group = config.users.users.root.group;
+ sopsFile = ../../secrets/cloudflare-ddns.env.bin;
+ format = "binary";
+ };
+}