add data/services.nix for shared service definitions
Creates a standalone data file that can be imported by both aspects/constants.nix and terranix configurations. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
848f79f8bb
commit
bde5e2aabc
20 changed files with 189 additions and 57 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{ inputs, lib, ... }:
|
||||
|
||||
let
|
||||
utils = import ../../../utils.nix { inherit inputs lib; };
|
||||
services = inputs.self.services;
|
||||
in
|
||||
|
||||
{
|
||||
|
|
@ -35,7 +35,7 @@ in
|
|||
# LAN-only DNS records
|
||||
local-zone = ''"baduhai.dev." transparent'';
|
||||
local-data = map (e: ''"${e.domain}. IN A ${e.lanIP}"'')
|
||||
(lib.filter (e: e ? lanIP) utils.services);
|
||||
(lib.filter (e: e.lanIP != null) services);
|
||||
};
|
||||
|
||||
forward-zone = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue