amarr module WIP
Some checks failed
/ test (push) Failing after 14m23s

This commit is contained in:
Andrea Ciceri 2025-04-28 20:20:57 +02:00
parent 29734b6bd7
commit c745986ef4
No known key found for this signature in database

23
modules/amarr/default.nix Normal file
View file

@ -0,0 +1,23 @@
args@{ lib, pkgs, ... }:
let
pkgs = builtins.getFlake "github:NixOS/nixpkgs/d278c7bfb89130ac167e80d2250f9abc0bede419";
amarr = pkgs.legacyPackages.${args.pkgs.system}.amarr;
in
{
systemd.services.amarr = {
description = "amarr";
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
serviceConfig = {
User = "root";
Type = "oneshot";
ExecStart = lib.getExe amarr;
};
environment = {
AMULE_HOST = "localhost";
AMULE_PORT = "4712";
AMULE_PASSWORD = "";
};
};
}