blob: 3ec639ee140a1e161662afec2c3c6f25b428e2f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Aria2 - command line download manager
{
pkgs,
lib,
config,
...
}:
{
options.web.aria2 = {
enable = lib.mkEnableOption "Enables aria2.";
package = lib.mkPackageOption pkgs "aria2" { };
};
config = lib.mkIf config.web.aria2.enable {
programs.aria2 = {
enable = true;
package = config.web.aria2.package;
settings = {
dir = "${config.home.homeDirectory}/Downloads";
};
systemd.enable = true;
};
};
}
|