From eb8b3681092033653e08ffb2088ad79f8d9fde6b Mon Sep 17 00:00:00 2001 From: Nettika Date: Tue, 16 Jul 2024 19:23:40 -0700 Subject: [PATCH] Configure ZeroTierOne --- marauder/default.nix | 7 ++++++- monolith/default.nix | 11 ++++++++++- secrets.json | Bin 209 -> 270 bytes 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/marauder/default.nix b/marauder/default.nix index a6542d4..4b2124f 100755 --- a/marauder/default.nix +++ b/marauder/default.nix @@ -1,4 +1,4 @@ -{ pkgs, inputs, ... }: +{ pkgs, inputs, secrets, ... }: { imports = [ ./backup.nix ]; @@ -136,6 +136,11 @@ enable = true; }; + services.zerotierone = { + enable = true; + joinNetworks = secrets.zerotier.networks; + }; + time.timeZone = "America/Los_Angeles"; system.stateVersion = "24.05"; diff --git a/monolith/default.nix b/monolith/default.nix index d2bded6..85633fb 100755 --- a/monolith/default.nix +++ b/monolith/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +{ pkgs, secrets, ... }: { networking = { hostName = "monolith"; hostId = "44551c32"; @@ -41,6 +41,8 @@ }; }; + nixpkgs.config.allowUnfree = true; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; tools.secrets = { @@ -56,6 +58,13 @@ settings.PasswordAuthentication = false; }; + services.zerotierone = { + enable = true; + joinNetworks = secrets.zerotier.networks; + }; + + security.sudo.wheelNeedsPassword = false; + time.timeZone = "America/Los_Angeles"; system.stateVersion = "24.05"; diff --git a/secrets.json b/secrets.json index 354060a1b2be713c3decbb282d7aed632d278f41..b75936565a0b197b7a62edb8218db83d2a40d5ec 100755 GIT binary patch literal 270 zcmZQ@_Y83kiVO&0SkXP{f9my!VufYmVn){bo!@eFe!pC1;-kgea;w+5vG?f@&;1u8 z#SiF&UcNU){)>#n;+?lFbA%<2s1zi9pRakklJ|(HP{GC}8f!xf+D<#&UetHSD!0%e ze&!!HHg!IM(>M0K_bK&O(|%Ut>vwfWQ}x65L84FoyE?}1d=ML2(>2W zqUYic)0QQ2i;o|6mEzE@vv0rlJtrqoVavrHRj#KJ zEUBHnk**Q8<)+nQ@hKULCf=UEu_;i9|B630(X_}mNt#Fk{z