mob next [ci-skip] [ci skip] [skip ci]

lastFile:modules/clan/apple-network/default.nix
This commit is contained in:
2026-07-23 15:48:45 +07:00
parent e631e927b1
commit 129aa8c779
2 changed files with 9 additions and 4 deletions
+5 -4
View File
@@ -2,12 +2,12 @@
{
_class = "clan.service";
manifest.name = "apple-network";
manifest.description = "This service allows atalkd instances to connect to peers over vxlan over Yggdrasil. We need to use vxlan due to the support of broadcasting it provides";
manifest.description = "This service will create an instance of `atalkd` for each peer to talk to Apple machines over Apple Talk protocol and automatically connect each peer using vxlan over Yggdrasil network to achieve Apple Talk over internet experience";
manifest.readme = builtins.readFile ./README.md;
manifest.categories = [ "Network" ];
roles.peer = {
description = "";
description = "A gateway machine that allow classic Apple machines to connect to other Apple machines over the internet";
interface =
{ lib, ... }:
@@ -16,12 +16,13 @@
zone_name = lib.mkOption {
type = with lib.types; str;
description = "Zone name for Apple Talk protocol";
default = "Default";
};
};
};
perInstance =
{ roles, ... }:
{ roles, settings, ... }:
{
nixosModule =
{
@@ -66,7 +67,7 @@
enable = true;
interfaces = {
vxlan.config = ''
-router -phase 2 -net 1 -zone "Default"
-router -phase 2 -net 1 -zone "${settings.zone_name}"
'';
};
};