updates / experimental TC setup
This commit is contained in:
@@ -5,7 +5,12 @@
|
||||
# Client-only + accept-routes.
|
||||
#
|
||||
# SSH via NetBird: enabled (Q7).
|
||||
{config, lib, pkgs, ...}: let
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkOption types;
|
||||
cfg = config.az.tc;
|
||||
hostname = config.networking.hostName;
|
||||
@@ -29,7 +34,7 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
config = mkIf (cfg.enable && cfg.features.netbird) {
|
||||
services.netbird.enable = true;
|
||||
|
||||
systemd.services.netbird = {
|
||||
@@ -40,8 +45,8 @@ in {
|
||||
};
|
||||
path = with pkgs; [shadow util-linux];
|
||||
|
||||
after = ["age-identity.service" "network-online.target"];
|
||||
wants = ["age-identity.service" "network-online.target"];
|
||||
after = ["age-identity.service" "NetworkManager-wait-online.service"];
|
||||
wants = ["age-identity.service" "NetworkManager-wait-online.service"];
|
||||
};
|
||||
|
||||
# Per-host setup key (agenix)
|
||||
|
||||
Reference in New Issue
Block a user