Compare commits
No commits in common. "c745986ef41b610bac12e336a733f9cb810c4917" and "b82994c914750f9ba870e512b0dade11c51f4cbe" have entirely different histories.
c745986ef4
...
b82994c914
3 changed files with 0 additions and 58 deletions
|
@ -33,7 +33,6 @@
|
||||||
"arr"
|
"arr"
|
||||||
"zerotier"
|
"zerotier"
|
||||||
"mosh"
|
"mosh"
|
||||||
"amule"
|
|
||||||
]
|
]
|
||||||
++ [
|
++ [
|
||||||
./disko.nix
|
./disko.nix
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
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 = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
|
@ -1,34 +0,0 @@
|
||||||
{ config, lib, ... }:
|
|
||||||
{
|
|
||||||
users.users.amule = {
|
|
||||||
isSystemUser = true;
|
|
||||||
group = "amule";
|
|
||||||
extraGroups = [ "amule" ];
|
|
||||||
home = config.services.amule.dataDir;
|
|
||||||
};
|
|
||||||
|
|
||||||
users.groups.amule = { };
|
|
||||||
services.amule = {
|
|
||||||
dataDir = "/mnt/hd/amule";
|
|
||||||
enable = true;
|
|
||||||
user = "amule";
|
|
||||||
};
|
|
||||||
|
|
||||||
# sometimes the service crashes with a segfeault without any reason...
|
|
||||||
systemd.services.amuled.serviceConfig.Restart = lib.mkForce "always";
|
|
||||||
|
|
||||||
environment.persistence."/persist".directories = [
|
|
||||||
config.services.amule.dataDir
|
|
||||||
];
|
|
||||||
|
|
||||||
networking.firewall = {
|
|
||||||
allowedTCPPorts = [ 4662 ];
|
|
||||||
allowedUDPPortRanges = [
|
|
||||||
{
|
|
||||||
from = 4665;
|
|
||||||
to = 4672;
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue