From 77eabee8d8f3c9f20862d2cb6598e78d5871818c Mon Sep 17 00:00:00 2001 From: kenny Date: Sat, 31 Jan 2026 16:46:36 +0200 Subject: [PATCH] Added yggdrasil + connected to VPS as peer + added Zathura --- hosts/puter/default.nix | 1 + modules/common/yggdrasil.nix | 23 +++++++++++++++++++++++ modules/userapps/productivity.nix | 1 + 3 files changed, 25 insertions(+) create mode 100644 modules/common/yggdrasil.nix diff --git a/hosts/puter/default.nix b/hosts/puter/default.nix index b385a7c..5c0ed2e 100644 --- a/hosts/puter/default.nix +++ b/hosts/puter/default.nix @@ -26,6 +26,7 @@ ../../modules/common/libvirt.nix ../../modules/common/keyd.nix ../../modules/common/unbound-cloud.nix + ../../modules/common/yggdrasil.nix ]; networking.hostName = "puter"; # This will be overridden by system/default.nix diff --git a/modules/common/yggdrasil.nix b/modules/common/yggdrasil.nix new file mode 100644 index 0000000..e61a1fc --- /dev/null +++ b/modules/common/yggdrasil.nix @@ -0,0 +1,23 @@ +{ pkgs, ... }: +{ + services.yggdrasil = { + enable = true; + persistentKeys = false; + # The NixOS module will generate new keys and a new IPv6 address each time + # it is started if persistentKeys is not enabled. + + settings = { + Peers = [ + # Yggdrasil will automatically connect and "peer" with other nodes it + # discovers via link-local multicast announcements. Unless this is the + # case (it probably isn't) a node needs peers within the existing + # network that it can tunnel to. + #"tcp://185.165.169.234:8880" + #"tls://185.165.169.234:8443" + "tcp://10.0.0.1:4242" + # Public peers can be found at + # https://github.com/yggdrasil-network/public-peers + ]; + }; + }; +} diff --git a/modules/userapps/productivity.nix b/modules/userapps/productivity.nix index 21a27f7..d263459 100644 --- a/modules/userapps/productivity.nix +++ b/modules/userapps/productivity.nix @@ -13,5 +13,6 @@ anki-bin pomodoro-gtk #ticker + zathura ]; }