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:
William 2026-02-06 22:46:49 -03:00
parent 848f79f8bb
commit bde5e2aabc
20 changed files with 189 additions and 57 deletions

View file

@ -1,10 +1,7 @@
# aspects/server/tailscale.nix
{ inputs, ... }:
{ ... }:
{
flake.modules.nixos.server-tailscale = { config, lib, pkgs, ... }: {
# Import parent aspect for inheritance
imports = [ inputs.self.modules.nixos.common-tailscale ];
services.tailscale = {
extraSetFlags = [ "--advertise-exit-node" ];
useRoutingFeatures = "server";