mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
fix(meta): tf state
This commit is contained in:
parent
4313b28e1e
commit
45f89ec734
1 changed files with 2 additions and 2 deletions
4
meta.nix
4
meta.nix
|
|
@ -56,11 +56,11 @@ in {
|
|||
tailnet_uri = "inskip.me";
|
||||
tailnet = let
|
||||
raw = home.resources.tailnet_devices.importAttr "devices";
|
||||
in mapListToAttrs (elet: nameValuePair (removeSuffix ".${config.tailnet_uri}" elet.name) {
|
||||
in mkIf (home.state.enable) (mapListToAttrs (elet: nameValuePair (removeSuffix ".${config.tailnet_uri}" elet.name) {
|
||||
tags = elet.tags;
|
||||
ipv4 = head (filter (e: hasInfix "." e) elet.addresses);
|
||||
ipv6 = head (filter (e: hasInfix ":" e) elet.addresses);
|
||||
}) raw;
|
||||
}) raw);
|
||||
|
||||
runners = {
|
||||
lazy = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue