split home-manager into their own submodules
This commit is contained in:
25
modules/scripts/download/home.nix
Normal file
25
modules/scripts/download/home.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
osConfig ? null,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
shellType = inputs.self.lib.hmShellType config osConfig;
|
||||
enabled =
|
||||
inputs.self.lib.hmOnlyUser config osConfig "jawz"
|
||||
&& (osConfig.my.units.download.enable || osConfig.my.units.downloadManga.enable);
|
||||
download = import ./common.nix {
|
||||
config = if osConfig == null then { } else osConfig;
|
||||
inherit inputs lib pkgs;
|
||||
};
|
||||
in
|
||||
{
|
||||
config = lib.mkIf enabled {
|
||||
programs.${shellType}.shellAliases = inputs.self.lib.mergeAliases inputs.self.lib.commonAliases {
|
||||
dl = "${download.wrappedDownload}/bin/download -u jawz -i";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user