Release Ver 1.2.0

This commit is contained in:
Peritia 2025-08-13 11:40:03 +02:00
parent 7f73899c91
commit 89600ebb06
25 changed files with 1862 additions and 57 deletions

31
legacy-nyx/nyx-tool.nix Normal file
View file

@ -0,0 +1,31 @@
{ config, lib, pkgs, ... }:
let
nyxCfg = config.nyx;
cfg = config.nyx.nyx-tool;
infoScript =
let
src = builtins.readFile ./bash/nyx-info.sh;
in
builtins.replaceStrings
[ "@LOG_DIR@" ]
[ (toString nyxCfg.logDir) ]
src;
in
{
options.nyx.nyx-tool = {
enable = lib.mkEnableOption "Enable nyx-tool banner script and the current info";
};
config = lib.mkIf cfg.enable {
home.packages = [
pkgs.figlet
(pkgs.writeShellScriptBin "nyx-tool"
(builtins.readFile ./bash/nyx-tool.sh)
)
(pkgs.writeShellScriptBin "nyx-info"
infoScript
)
];
};
}