configuration.nix/home/desktop/services/aria2c.nix

23 lines
521 B
Nix
Raw Normal View History

2023-05-18 16:11:26 +05:30
{
config,
pkgs,
...
}: {
2023-05-13 00:31:26 +05:30
systemd.user.services.aria2c = {
Unit = {
Description = "Aria2c Download Manager";
2023-05-18 16:11:26 +05:30
Documentation = ["man:aria2c(1)"];
After = ["network.target"];
2023-05-13 00:31:26 +05:30
};
Install = {
2023-05-18 16:11:26 +05:30
WantedBy = ["default.target"];
2023-05-13 00:31:26 +05:30
};
Service = {
Type = "simple";
ExecStart = ''
${pkgs.aria}/bin/aria2c --console-log-level=warn --log-level=notice --enable-rpc --rpc-listen-all --rpc-listen-port=6800 --dir="${config.xdg.userDirs.download}"
'';
};
};
}