From 03175bb9a72c230bd5a4e658440f936860f8c45b Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Thu, 18 Apr 2024 17:28:17 +0200 Subject: [PATCH] feat(sj-bm-hostkey0): add zerotier --- nix/os/devices/sj-bm-hostkey0/configuration.nix | 5 +++++ nix/os/snippets/holo-zerotier.nix | 2 ++ 2 files changed, 7 insertions(+) diff --git a/nix/os/devices/sj-bm-hostkey0/configuration.nix b/nix/os/devices/sj-bm-hostkey0/configuration.nix index 4e82eb8..ca1551e 100644 --- a/nix/os/devices/sj-bm-hostkey0/configuration.nix +++ b/nix/os/devices/sj-bm-hostkey0/configuration.nix @@ -173,4 +173,9 @@ in { boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; + + steveej.holo-zerotier = { + enable = true; + autostart = false; + }; } diff --git a/nix/os/snippets/holo-zerotier.nix b/nix/os/snippets/holo-zerotier.nix index dc02fdc..8b09cea 100644 --- a/nix/os/snippets/holo-zerotier.nix +++ b/nix/os/snippets/holo-zerotier.nix @@ -11,6 +11,8 @@ in { }; config = { + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "zerotierone" ]; + services.zerotierone = { enable = cfg.enable; joinNetworks = [