dotfiles/nixos/home-manager/scripts/download.nix
Cyryl Płotnicki fe4d30f651 nixpkgs-fmt
2021-11-22 19:32:26 +00:00

16 lines
266 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 ];
}