dotfiles/nixos/home-manager/scripts/download.nix
Cyryl Płotnicki 3d6dd759c4 nixfmt
2022-03-10 12:25:23 +00:00

13 lines
264 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 ]; }