This commit is contained in:
iawdwa 2025-07-11 09:13:09 +02:00
commit 7f583a7ed9
7 changed files with 489 additions and 0 deletions

21
nyx-tool.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
let
cfg = config.modules.nix-tool;
scriptTargetPath = "${cfg.nixDirectory}/Misc/zsh/nyx-rebuild.zsh";
in
{
options.modules.nix-tool.enable = lib.mkEnableOption "Enable nix-tool Zsh function for tool metadata display.";
config = lib.mkIf cfg.enable {
home.packages = [
pkgs.figlet
];
programs.zsh.enable = lib.mkDefault true;
programs.zsh.initContent = ''
source "${scriptTargetPath}"
'';
};
}