dotfiles/nixos/home-manager/scripts/download.nix

17 lines
266 B
Nix
Raw Normal View History

2021-07-30 23:31:50 +01:00
{ config, pkgs, ... }:
let
download = pkgs.writeTextFile {
name = "download";
executable = true;
destination = "/bin/download";
text = ''
${pkgs.aria}/bin/aria2c -x 16 -s 16 $@
'';
};
in
2021-11-22 19:32:26 +00:00
{
home.packages = with pkgs; [ download ];
}