init
This commit is contained in:
commit
7f583a7ed9
7 changed files with 489 additions and 0 deletions
21
nyx-tool.nix
Normal file
21
nyx-tool.nix
Normal 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}"
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue