Completed the part with caddy. Problems with exporterr and api keys
This commit is contained in:
parent
58d5c8a812
commit
4e649d4344
6 changed files with 147 additions and 20 deletions
|
|
@ -1,7 +1,8 @@
|
|||
{ lib
|
||||
, config
|
||||
, pkgs
|
||||
, ...
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
|
|
@ -26,6 +27,15 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
magicDNSDomain = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
example = "example.ts.net";
|
||||
description = ''
|
||||
This unique name is used when registering DNS entries, sharing your device to other tailnets, and issuing TLS certificates
|
||||
'';
|
||||
};
|
||||
|
||||
exitNode = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
|
|
@ -53,6 +63,12 @@ in
|
|||
useRoutingFeatures = if cfg.exitNode == "" then "none" else "both";
|
||||
extraUpFlags = [ "--exit-node=${cfg.exitNode}" ] ++ cfg.extraUpFlags;
|
||||
};
|
||||
|
||||
networking = {
|
||||
nameservers = [ "100.100.100.100" ];
|
||||
search = [ cfg.magicDNSDomain ];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue