Files
Danilo Reyes 66483c89ac
All checks were successful
MCP Tests / mcp-tests (push) Successful in 19s
code rules
2026-03-23 15:49:51 -06:00

26 lines
622 B
Nix

{
config,
inputs,
lib,
osConfig ? null,
pkgs,
...
}:
let
shellType = inputs.self.lib.hmShellType osConfig "zsh";
enabled =
inputs.self.lib.hmOnlyUser config osConfig "jawz"
&& (osConfig.my.units.download.enable || osConfig.my.units.downloadManga.enable);
download = import ./common.nix {
inherit inputs lib pkgs;
config = if osConfig == null then { } else osConfig;
};
in
{
config = lib.mkIf enabled {
programs.${shellType}.shellAliases = inputs.self.lib.mergeAliases inputs.self.lib.commonAliases {
dl = "${download.wrappedDownload}/bin/download -u jawz -i";
};
};
}