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
|
|
@ -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