Release Ver 1.2.0
This commit is contained in:
parent
7f73899c91
commit
89600ebb06
25 changed files with 1862 additions and 57 deletions
31
legacy-nyx/nyx-tool.nix
Normal file
31
legacy-nyx/nyx-tool.nix
Normal 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
|
||||
)
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue