diff --git a/nixos/home-manager/scripts.nix b/nixos/home-manager/scripts.nix index 39f58dc3..2f707e67 100644 --- a/nixos/home-manager/scripts.nix +++ b/nixos/home-manager/scripts.nix @@ -3,5 +3,6 @@ imports = [ ./scripts/mount-vault.nix ./scripts/umount-vault.nix + ./scripts/download.nix ]; } diff --git a/nixos/home-manager/scripts/download.nix b/nixos/home-manager/scripts/download.nix new file mode 100644 index 00000000..2a74b625 --- /dev/null +++ b/nixos/home-manager/scripts/download.nix @@ -0,0 +1,16 @@ +{ 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 ]; + }