refactor: static networking

This commit is contained in:
arcnmx 2024-01-18 13:51:13 -08:00
parent 1a4b5ee8b2
commit 91d4895c6f
13 changed files with 155 additions and 16 deletions

10
nixos/access/global.nix Normal file
View file

@ -0,0 +1,10 @@
{
lib,
...
}: let
inherit (lib.modules) mkDefault;
in {
networking = {
tempAddresses = mkDefault "disabled";
};
}

View file

@ -3,7 +3,6 @@
{
networking = {
nftables.enable = true;
tempAddresses = "disabled";
domain = mkDefault "gensokyo.zone";
hostName = mkOverride 25 name;
};

View file

@ -89,7 +89,6 @@ in {
homekit = [ {
name = "Tewi";
port = 21063;
ip_address = config.networking.access.static.ipv4;
filter = let
inherit (cfg.config) google_assistant;
in {