1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-09 18:26:54 +00:00
home-manager/tests/modules/programs/aria2/settings.nix

33 lines
637 B
Nix
Raw Normal View History

2020-04-28 14:38:41 -04:00
{
programs.aria2 = {
enable = true;
2020-04-28 14:38:41 -04:00
settings = {
listen-port = 60000;
dht-listen-port = 60000;
seed-ratio = 1.0;
max-upload-limit = "50K";
ftp-pasv = true;
2020-04-28 14:38:41 -04:00
};
extraConfig = ''
# Extra aria2 configuration.
2020-04-28 14:38:41 -04:00
'';
};
nmt.script = ''
assertFileContent \
home-files/.config/aria2/aria2.conf \
${
builtins.toFile "aria2-expected-config.conf" ''
dht-listen-port=60000
ftp-pasv=true
listen-port=60000
max-upload-limit=50K
seed-ratio=1.000000
# Extra aria2 configuration.
''
}
'';
2020-04-28 14:38:41 -04:00
}