From 63adb41f1a060c21a68143eb9e86c2790ef66f36 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 8 Aug 2024 10:45:09 +0200 Subject: ... --- modules/yggdrasil/default.nix | 50 ------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 modules/yggdrasil/default.nix (limited to 'modules/yggdrasil/default.nix') diff --git a/modules/yggdrasil/default.nix b/modules/yggdrasil/default.nix deleted file mode 100644 index f4100e73..00000000 --- a/modules/yggdrasil/default.nix +++ /dev/null @@ -1,50 +0,0 @@ -{ config, lib, customUtils, ... }: -let - cfg = config.services.tinc.yggdrasil; -in { - options = { - services.tinc.yggdrasil = lib.mkOption { - default = {}; - type = lib.types.submodule { - options = { - enable = lib.mkEnableOption "Yggdrasil tinc network"; - - connect = lib.mkOption { - default = true; - type = lib.types.bool; - description = '' - Connect to central server - ''; - }; - }; - }; - }; - }; - - config = lib.mkIf cfg.enable { - services.tinc.networks.yggdrasil = { - name = config.networking.hostName; - hostSettings = customUtils.nixImport { dir = ./hosts; }; - debugLevel = 2; - interfaceType = "tap"; - settings = { - Mode = "switch"; - PingTimeout = 30; - ConnectTo = lib.mkIf cfg.connect "ymir"; - }; - }; - - sops.secrets = { - tinc-yggdrasil-rsa = { - key = "rsa"; - path = "/etc/tinc/yggdrasil/rsa_key.priv"; - sopsFile = ./hosts + "/${config.services.tinc.networks.yggdrasil.name}/private-keys.yaml"; - }; - tinc-yggdrasil-ed25519 = { - key = "ed25519"; - path = "/etc/tinc/yggdrasil/rsa_key.priv"; - sopsFile = ./hosts + "/${config.services.tinc.networks.yggdrasil.name}/private-keys.yaml"; - }; - }; - }; -} -- cgit v1.2.3