about summary refs log tree commit diff
path: root/modules/wireguard.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-05-02 14:30:08 +0300
committerAzat Bahawi <azat@bahawi.net>2024-05-02 14:30:08 +0300
commit3c61dc9cc35ed201877d81b1b7ad848f1ac9855e (patch)
treecd9c766d3046cbaddfdd48ef34d6229e37d36591 /modules/wireguard.nix
parent2024-05-02 (diff)
2024-05-02
Diffstat (limited to '')
-rw-r--r--modules/wireguard.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/wireguard.nix b/modules/wireguard.nix
index 6e5bdbc..f408731 100644
--- a/modules/wireguard.nix
+++ b/modules/wireguard.nix
@@ -9,7 +9,6 @@
 with lib;
 let
   cfg = config.nixfiles.modules.wireguard;
-  inherit (config.lib.topology) mkConnection;
 in
 {
   options.nixfiles.modules.wireguard = {
@@ -230,7 +229,7 @@ in
           };
 
           nodes.${this.hostname}.interfaces.${interface}.physicalConnections = mapAttrsToList (
-            name: _: (mkConnection name interface)
+            name: _: config.lib.topology.mkConnection name interface
           ) (filterAttrs (n: v: !v.isOther && n != this.hostname && hasAttr "wireguard" v) my.configurations);
         };
       })

Consider giving Nix/NixOS a try! <3