dotfiles/nixos/home-manager/scripts/download.nix
2021-07-30 23:31:50 +01:00

16 lines
272 B
Nix

{ config, pkgs, ... }:
let
download = pkgs.writeTextFile {
name = "download";
executable = true;
destination = "/bin/download";
text = ''
${pkgs.aria}/bin/aria2c -x 16 -s 16 $@
'';
};
in
{
home.packages = with pkgs; [ download ];
}