25 lines
600 B
Nix
25 lines
600 B
Nix
{
|
|
config,
|
|
lib,
|
|
namespace,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
inherit (lib.${namespace}) getAttrByNamespace mkOptionsWithNamespace;
|
|
base = "${namespace}.cli.scripts";
|
|
cfg = getAttrByNamespace config base;
|
|
in {
|
|
options = mkOptionsWithNamespace base {
|
|
enable = mkEnableOption "custom shell scripts";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home.packages = [
|
|
(import ./format-drive.nix {inherit pkgs;})
|
|
(import ./get-music-cover.nix {inherit pkgs;})
|
|
(import ./nr.nix {inherit pkgs;})
|
|
(import ./scratchpad.nix {inherit pkgs;})
|
|
];
|
|
};
|
|
}
|