diff options
author | sternenseemann <sternenseemann@systemli.org> | 2023-02-02 14:15:25 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2023-02-02 14:17:06 +0100 |
commit | 33f4a858d5e2afc218f2975aaa64f24f4155f2d3 (patch) | |
tree | 447b8b3c7f500a45119cdf207ba32017c762b29c /machines/sternenseemann/wireguard.nix | |
parent | 2cafbd7e6881732e64477e11f4e0a1884e89f730 (diff) |
machines/sternenseemann/wolfgang: display state of wireguard ifaces
Diffstat (limited to 'machines/sternenseemann/wireguard.nix')
-rw-r--r-- | machines/sternenseemann/wireguard.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/machines/sternenseemann/wireguard.nix b/machines/sternenseemann/wireguard.nix index b365dbe8..4011ee10 100644 --- a/machines/sternenseemann/wireguard.nix +++ b/machines/sternenseemann/wireguard.nix @@ -33,5 +33,22 @@ in }; }; }; + + vuizvui.user.sternenseemann.services.sway.extraStatus = builtins.listToAttrs ( + builtins.concatLists ( + builtins.map ( + iface: + builtins.map ( + ip: + { + name = "path_exists ${iface}${ip}"; + value = '' + path = "/proc/sys/net/ip${ip}/conf/${iface}" + ''; + } + ) [ "v4" "v6" ] + ) (builtins.attrNames config.networking.wg-quick.interfaces) + ) + ); }; } |