Add amule
and enable on sisko
This commit is contained in:
parent
b82994c914
commit
29734b6bd7
2 changed files with 35 additions and 0 deletions
|
@ -33,6 +33,7 @@
|
|||
"arr"
|
||||
"zerotier"
|
||||
"mosh"
|
||||
"amule"
|
||||
]
|
||||
++ [
|
||||
./disko.nix
|
||||
|
|
34
modules/amule/default.nix
Normal file
34
modules/amule/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ 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
Reference in a new issue