mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
modules/nixos/katnet: Init
This commit is contained in:
parent
54be0dd1f9
commit
7f387cb7de
5 changed files with 14 additions and 18 deletions
|
|
@ -88,12 +88,6 @@
|
|||
to = 20000;
|
||||
}]; # asterisk
|
||||
|
||||
deploy.tf.dns.records.kittywitch_net_athame = {
|
||||
tld = "kittywit.ch.";
|
||||
domain = "${config.networking.hostName}.net";
|
||||
aaaa.address = config.hexchen.network.address;
|
||||
};
|
||||
|
||||
deploy.tf.dns.records.kittywitch_athame_v6 = {
|
||||
tld = "kittywit.ch.";
|
||||
domain = "athame";
|
||||
|
|
|
|||
|
|
@ -131,12 +131,6 @@ in {
|
|||
listen.endpoints = [ "tcp://0.0.0.0:0" ];
|
||||
};
|
||||
|
||||
deploy.tf.dns.records.kittywitch_net_samhain = {
|
||||
tld = "kittywit.ch.";
|
||||
domain = "${config.networking.hostName}.net";
|
||||
aaaa.address = config.hexchen.network.address;
|
||||
};
|
||||
|
||||
system.stateVersion = "20.09";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,12 +33,6 @@
|
|||
listen.endpoints = [ "tcp://0.0.0.0:0" ];
|
||||
};
|
||||
|
||||
deploy.tf.dns.records.kittywitch_net_yule = {
|
||||
tld = "kittywit.ch.";
|
||||
domain = "${config.networking.hostName}.net";
|
||||
aaaa.address = config.hexchen.network.address;
|
||||
};
|
||||
|
||||
system.stateVersion = "20.09";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
13
modules/nixos/katnet/default.nix
Normal file
13
modules/nixos/katnet/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue