Actually do what the last commit was supposed to do
This commit is contained in:
parent
935a03a56a
commit
1cf456b606
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
removeCIDR = cidr: builtins.elemAt (builtins.split "/" cidr) 0;
|
||||
filterIPs = cidrs: builtins.map "${removeCIDR cidrs}";
|
||||
filterIPs = cidrs: builtins.map (f: "[${removeCIDR f}]") cidrs;
|
||||
listenIPs = filterIPs config.networking.wireguard.interfaces."wg0".ips;
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue