added reticulum
This commit is contained in:
parent
0e4e3308c1
commit
79cf938395
2 changed files with 47 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
||||||
./authelia.nix
|
./authelia.nix
|
||||||
./containers/hello.nix
|
./containers/hello.nix
|
||||||
agenix.nixosModules.default
|
agenix.nixosModules.default
|
||||||
|
./reticulum.nix
|
||||||
];
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
|
|
|
||||||
46
reticulum.nix
Normal file
46
reticulum.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment.systemPackages = [ pkgs.python3Packages.rns ];
|
||||||
|
|
||||||
|
environment.etc."reticulum/config".text = ''
|
||||||
|
[reticulum]
|
||||||
|
enable_transport = True
|
||||||
|
share_instance = Yes
|
||||||
|
|
||||||
|
[interfaces]
|
||||||
|
|
||||||
|
[[Private Backbone]]
|
||||||
|
type = BackboneInterface
|
||||||
|
enabled = yes
|
||||||
|
mode = gateway
|
||||||
|
listen_ip = 0.0.0.0
|
||||||
|
port = 25515
|
||||||
|
network_name = reudynet
|
||||||
|
passphrase = makbrojojo3
|
||||||
|
'';
|
||||||
|
|
||||||
|
users.users.reticulum = {
|
||||||
|
isSystemUser = true;
|
||||||
|
group = "reticulum";
|
||||||
|
description = "Reticulum daemon user";
|
||||||
|
home = "/var/lib/reticulum";
|
||||||
|
createHome = true;
|
||||||
|
};
|
||||||
|
users.groups.reticulum = {};
|
||||||
|
|
||||||
|
systemd.services.rnsd = {
|
||||||
|
description = "Reticulum Network Stack daemon";
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
after = [ "network.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "simple";
|
||||||
|
User = "reticulum";
|
||||||
|
ExecStart = "${pkgs.python3Packages.rns}/bin/rnsd --config /etc/reticulum";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "5s";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [ 25515 ];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue