diff --git a/nixos/telperion/configuration.nix b/nixos/telperion/configuration.nix index 8e0d3a9..642a9b2 100644 --- a/nixos/telperion/configuration.nix +++ b/nixos/telperion/configuration.nix @@ -21,10 +21,13 @@ owner = config.users.users.named.name; inherit (config.users.users.named) group; }; + "bind/zones/jahanson.tech" = { + owner = config.users.users.named.name; + inherit (config.users.users.named) group; + }; }; }; - # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -58,7 +61,11 @@ services.bind = { enable = true; - + extraConfig = '' + include "${config.sops.secrets."bind/rndc-keys/main".path}"; + include "${config.sops.secrets."bind/rndc-keys/externaldns".path}"; + include "${config.sops.secrets."bind/named_extraconfig".path}"; + ''; }; # Some programs need SUID wrappers, can be configured further or are diff --git a/secrets.yaml b/secrets.yaml index 2bb3b5c..77a54dd 100644 --- a/secrets.yaml +++ b/secrets.yaml @@ -2,6 +2,7 @@ bind: rndc_keys: main: ENC[AES256_GCM,data:fHA7GHqsS2A4W4sp8f/qW1CAsK9g4GOV6AJosDkJHYD1hm6gGP/c7qN3LPCVGNP1dLvwdFBMsJw9Zk11RXmqix+4RRVJe1H+b0kYYgdawiWpujQ3APlb6FNRJL05818vLYJs5gnP,iv:Kpq6AVJG/7gbztgxsDzY087Q/ykg9Pe92IXdk88LsOg=,tag:qSYN8JCzh8XJuagU7RHctg==,type:str] externaldns: ENC[AES256_GCM,data:aAKeXstTUfpTSR7M3TMtXaHoYRiaQAVUsfEbIIOAP4V1vAwsTTZg7u8hKdyDh3xA+oXnrcZL9Z0/lKyfvEaZSkHdC1ATTNgnFXEhoJg+k52knETYQMRJMn54lxCwIgGxJ0pkcgIXxdg5,iv:VAUzo2UQ0DfLUcchlNJW7lmS0BK/KFgAYncqwmMDpxw=,tag:pLVWO63bIV4vn12kbeS6Ug==,type:str] + named_extraconfig: ENC[AES256_GCM,data:wrkNCGFDR2h97PIYd3Ij0bge2sAD90GoqP4TqbYOUYYsxUiyZg9CCqt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zJkzVmaB5ma8qij1W8zQlF6QRIVe0YuNfsiugatUEbRZppqpb7eIH9v4se+SBUN89w54mOuiQ/VY9oBT6nkSrEiJuVnWk/8z3rXGpxnEGCFjWAe2dqKo0c2D/xdmUHkJyoqDqBZdSphpXtEJ/UVWQMjCL8EBKKobARCmy2FiPQhuQ+PAy3Z991jhJ9RVTcckFu90Q4LWkrDHd4iZDVrLosdgV0GCE9VK5eH2OSHCGkiQ8Y7QaIfAqTYt+Asbvv5lad7n5n2PpXslGMOkQgz2xWMwv9SLNVn3xmegBxb14l4PT+lIQexXkewcBZ9JPTsuTTqJXT5VGDglncXXehJqnezQD+V2dSX6AUAUCAvOCRs1/uRAHzh4IZsQxsmaxPNrCybq8uiGj1bymfX2LbS8ZsQ,iv:Jnw8C+KA4DjKeitEGrqY51Os1ar+ZOIqivsF0x5hvQM=,tag:p/cDPkK3URWk8fTZhYO9nA==,type:str] sops: @@ -28,8 +29,8 @@ sops: SHZmN3JDL1ExVHZ5K2txM2h6MzRKWE0KbS3kO9teIcRDY4hnb54LgWzcRQu7aGGf TjnTJzqKqmRRMLOs5be6wbrxBiRe9p5nCN/WJ9nqhr7rfNNMUiZePw== -----END AGE ENCRYPTED FILE----- - lastmodified: "2024-04-29T17:14:41Z" - mac: ENC[AES256_GCM,data:yi3rXlgX/xlfsaSlu78c/F8d3awI2qrE2UTZuLqqOhYP6XIyAa2f+4rS/kRmNSbMEne6z3nMKvlglp2/SyO11fkrACjesQjfGIbkmb2h9+5wH0HFIwMWb8mIRq5Gs/O/gISJ4wjolnijeURf1D6C1EuErTet6/LGcS0nVqJ4u/c=,iv:pDm3hBqqmIQp7DajCQqrgFtlMFw+OqnxzY0JH8F6/v4=,tag:YiuvJF5zFRZS8b2b5d1nOg==,type:str] + lastmodified: "2024-04-29T17:31:42Z" + mac: ENC[AES256_GCM,data:mrfK8pGbj3w2BvcwzsL9YHPJyh+T42IGAIpy+XFmUXvrV8rqkWcSabCOddmGDqUtHGpEHQ7xxDvUmI83zSRt5hS/pbVYMVrwAw8lWjJS59bE6sUO0F3kKPzIH1G2K1evZ1hesSk/y7RWuL3+KV+KQ7YzMSYD1Iqabc2Q5HEqZ94=,iv:6IdFxpvpNjE2JNMlbOTr+CZis85x3D7jFVtMD9TUNo4=,tag:H1JJlszywcvVGHNa8juR5g==,type:str] pgp: [] unencrypted_suffix: _unencrypted version: 3.8.1