summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-06 16:42:35 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-06 16:42:35 +0100
commit93f07176317920ee881773519ee342f9c62ab9c9 (patch)
tree8876150049c83ac8257ac13e191f46fcef10c242 /modules
parent5c02818571f5dbc93b0f848514dd4b55530f73c2 (diff)
downloadnixos-93f07176317920ee881773519ee342f9c62ab9c9.tar
nixos-93f07176317920ee881773519ee342f9c62ab9c9.tar.gz
nixos-93f07176317920ee881773519ee342f9c62ab9c9.tar.bz2
nixos-93f07176317920ee881773519ee342f9c62ab9c9.tar.xz
nixos-93f07176317920ee881773519ee342f9c62ab9c9.zip
sif: wgrz
Diffstat (limited to 'modules')
-rw-r--r--modules/yggdrasil-wg/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/yggdrasil-wg/default.nix b/modules/yggdrasil-wg/default.nix
index cab1276a..2180711d 100644
--- a/modules/yggdrasil-wg/default.nix
+++ b/modules/yggdrasil-wg/default.nix
@@ -251,6 +251,6 @@ in {
251 251
252 boot.extraModulePackages = optional (versionOlder kernel.kernel.version "5.6") kernel.wireguard ++ [kernel.batman_adv]; 252 boot.extraModulePackages = optional (versionOlder kernel.kernel.version "5.6") kernel.wireguard ++ [kernel.batman_adv];
253 environment.systemPackages = with pkgs; [ wireguard-tools batctl ]; 253 environment.systemPackages = with pkgs; [ wireguard-tools batctl ];
254 services.udev.extraRules = mkIf config.networking.networkmanager.enable (lib.mkAfter (concatMapStringsSep "\n" (dev: "ACTION==\"add\", SUBSYSTEM==\"net\", KERNEL==\"${dev}\", ENV{NM_UNMANAGED}=\"1\"") (["yggdrasil"] ++ map (family: "yggdrasil-wg-${family}") hostFamilies ++ concatMap (family: map ({from, to, ...}: let other = if thisHost from then to else from; in "yggre-${other}-${family}") hostLinks.${family}) hostFamilies))); 254 networking.networkmanager.unmanaged = ["yggdrasil" "ip6gre0" "ip6tnl0"] ++ map (family: "yggdrasil-wg-${family}") hostFamilies ++ concatMap (family: map ({from, to, ...}: let other = if thisHost from then to else from; in "yggre-${other}-${family}") hostLinks.${family}) hostFamilies;
255 }; 255 };
256} 256}