Add new server modules and configurations for various services
/ update-readme (push) Has been cancelled
/ update-readme (push) Has been cancelled
- Introduced `default-creds` module for managing default credentials with Umami integration. - Added `fail2ban` module for brute-force attack protection with configurable ban times. - Created `firewall` module to enable and configure basic firewall settings. - Implemented `gitea` module for self-hosted Git service with PostgreSQL backend. - Developed `glance` module for a customizable dashboard with various widgets and themes. - Added `iknowyou` module for a self-hosted password manager with production and demo environments. - Introduced `kernel-hardening` module for enhancing kernel security settings. - Created `mazanoke` module for a simple web application with Nginx integration. - Added `mealie` module for a self-hosted meal planning application. - Implemented `stirling-pdf` module for PDF generation service. - Developed `umami` module for self-hosted analytics with secret management. - Added `ssh` module for secure SSH configuration with user restrictions. - Introduced `nixy` theme for a customized aesthetic experience across services.
This commit is contained in:
@@ -0,0 +1,129 @@
|
||||
{pkgs, ...}: {
|
||||
programs.yazi = {
|
||||
enable = true;
|
||||
shellWrapperName = "y";
|
||||
|
||||
plugins = {
|
||||
git = {
|
||||
package = pkgs.yaziPlugins.git;
|
||||
setup = true;
|
||||
};
|
||||
ouch = pkgs.yaziPlugins.ouch;
|
||||
piper = pkgs.yaziPlugins.piper;
|
||||
convert = pkgs.yaziPlugins.convert;
|
||||
"jump-to-char" = pkgs.yaziPlugins."jump-to-char";
|
||||
"wl-clipboard" = pkgs.yaziPlugins."wl-clipboard";
|
||||
"batch-rename-gui" = pkgs.yaziPlugins.mkYaziPlugin {
|
||||
pname = "batch-rename-gui.yazi";
|
||||
version = "0-unstable-2025-07-08";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "pakhromov";
|
||||
repo = "batch-rename-gui.yazi";
|
||||
rev = "5c2d5aa349948b6ab405a171541faab44751f6a5";
|
||||
hash = "sha256-3RviPY3WOyYi5GWXWRYMWp6VLxCe5cuJX7Kb7AyWxLE=";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
settings.mgr.ratio = [0 4 3];
|
||||
|
||||
settings.plugin = {
|
||||
prepend_fetchers = [
|
||||
{
|
||||
url = "*";
|
||||
run = "git";
|
||||
group = "git";
|
||||
}
|
||||
{
|
||||
url = "*/";
|
||||
run = "git";
|
||||
group = "git";
|
||||
}
|
||||
];
|
||||
prepend_previewers = [
|
||||
{
|
||||
url = "*.md";
|
||||
run = ''piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'';
|
||||
}
|
||||
];
|
||||
prepend_openers = [
|
||||
{
|
||||
url = "*.{zip,tar,gz,bz2,xz,7z,rar}";
|
||||
run = "ouch";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymap.mgr.prepend_keymap = [
|
||||
{
|
||||
on = ["C"];
|
||||
run = "plugin ouch";
|
||||
desc = "Compress";
|
||||
}
|
||||
{
|
||||
on = ["X"];
|
||||
run = "plugin ouch --args=extract";
|
||||
desc = "Extract";
|
||||
}
|
||||
{
|
||||
on = ["c" "p"];
|
||||
run = "plugin convert -- --extension='png'";
|
||||
desc = "Convert to PNG";
|
||||
}
|
||||
{
|
||||
on = ["c" "j"];
|
||||
run = "plugin convert -- --extension='jpg'";
|
||||
desc = "Convert to JPG";
|
||||
}
|
||||
{
|
||||
on = ["c" "w"];
|
||||
run = "plugin convert -- --extension='webp'";
|
||||
desc = "Convert to WebP";
|
||||
}
|
||||
{
|
||||
on = ["M"];
|
||||
run = ''shell 'exiftool "$@" | less' --block'';
|
||||
desc = "Show metadata";
|
||||
}
|
||||
{
|
||||
on = ["T"];
|
||||
run = "plugin toggle-parent";
|
||||
desc = "Toggle parent pane";
|
||||
}
|
||||
{
|
||||
on = ["F"];
|
||||
run = "plugin jump-to-char";
|
||||
desc = "Jump to char";
|
||||
}
|
||||
{
|
||||
on = ["Y"];
|
||||
run = "plugin wl-clipboard";
|
||||
desc = "Copy to clipboard (Wayland)";
|
||||
}
|
||||
{
|
||||
on = ["B"];
|
||||
run = "plugin batch-rename-gui";
|
||||
desc = "Batch rename";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [glow ouch hexyl exiftool fzf wl-clipboard];
|
||||
|
||||
xdg.configFile."yazi/plugins/toggle-parent.yazi/main.lua".text = ''
|
||||
--- @sync entry
|
||||
local RESTORE_WIDTH = 1
|
||||
return {
|
||||
entry = function(st, job)
|
||||
local r = rt.mgr.ratio
|
||||
if r.parent == 0 then
|
||||
rt.mgr.ratio = { st.width or RESTORE_WIDTH, r.current, r.preview }
|
||||
else
|
||||
st.width = r.parent
|
||||
rt.mgr.ratio = { 0, r.current, r.preview }
|
||||
end
|
||||
ya.emit("app:resize", {})
|
||||
end
|
||||
}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user