21 lines
468 B
Nix
21 lines
468 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.modules.nix-tool;
|
|
scriptTargetPath = "${cfg.nixDirectory}/Misc/Nyx-Tools/zsh/nyx-cleanup.zsh";
|
|
in
|
|
{
|
|
options.modules.nix-tool.enable = lib.mkEnableOption "Enable nix-tool Zsh function for Banner display.";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = [
|
|
pkgs.figlet
|
|
];
|
|
|
|
programs.zsh.enable = lib.mkDefault true;
|
|
|
|
programs.zsh.initContent = ''
|
|
source "${scriptTargetPath}"
|
|
'';
|
|
};
|
|
}
|