modules/nixos/katnet: Init

This commit is contained in:
kat witch 2021-04-27 19:38:12 +01:00
parent 54be0dd1f9
commit 7f387cb7de
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
5 changed files with 14 additions and 18 deletions

View file

@ -4,6 +4,7 @@ let hexchen = (import sources.nix-hexchen) { };
in {
imports = [
./deploy
./katnet
./tf-glue
(sources.pbb-nixfiles + "/modules/nftables")
(sources.tf-nix + "/modules/nixos/secrets.nix")

View file

@ -0,0 +1,13 @@
{ config, hosts, lib, pkgs, ... }:
with lib;
{
config = mkIf config.hexchen.network.enable {
deploy.tf.dns.records."kittywitch_net_${config.networking.hostName}" = {
tld = "kittywit.ch.";
domain = "${config.networking.hostName}.net";
aaaa.address = config.hexchen.network.address;
};
};
}