This commit is contained in:
Shrek Requiem 2025-03-08 09:30:17 -05:00
parent e6ac0ae04d
commit 8bc4163b5e
4 changed files with 79 additions and 0 deletions

27
flake.lock Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1740367490,
"narHash": "sha256-WGaHVAjcrv+Cun7zPlI41SerRtfknGQap281+AakSAw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0196c0175e9191c474c26ab5548db27ef5d34b05",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

11
flake.nix Normal file
View File

@ -0,0 +1,11 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }: {
nixosConfigurations.iso = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix"
];
};
};
}

34
modules/anarchos.nix Normal file
View File

@ -0,0 +1,34 @@
{ pkgs, ... }: {
environment.systemPackages = [
(pkgs.python3.withPackages (ps: [
ps.reticulum
ps.lxmf
ps.rns
]))
];
systemd.services.reticulum = {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.python3}/bin/rnsd --config /etc/reticulum.conf";
Restart = "always";
RestartSec = "5s";
};
};
environment.etc."reticulum.conf" = {
text = ''
[reticulum]
enable_icmp = false
shared_instance = true
panic_on_identity_loss = true
[[Default Interface]]
type = AutoInterface
interface_enabled = true
outgoing = true
port = 4242
'';
mode = "0640";
};
}

7
mprocs.yaml Normal file
View File

@ -0,0 +1,7 @@
procs:
Nix Run:
shell: "nix run .#anarchVM"
autostart: False
Nix Test:
shell: "nix flake check"
autostart: False