parent
29734b6bd7
commit
c745986ef4
1 changed files with 23 additions and 0 deletions
23
modules/amarr/default.nix
Normal file
23
modules/amarr/default.nix
Normal 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 = "";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue