Introduced npins for managing github sources
This commit is contained in:
parent
e61790e2b9
commit
c29af554fa
6 changed files with 156 additions and 38 deletions
|
@ -6,7 +6,9 @@
|
|||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption;
|
||||
inherit (pkgs) tmuxPlugins;
|
||||
|
||||
sources = import ../../../../npins;
|
||||
cfg = config.${namespace}.apps.tmux;
|
||||
in {
|
||||
options.${namespace}.apps.tmux = {
|
||||
|
@ -23,11 +25,9 @@ in {
|
|||
sensibleOnTop = true;
|
||||
terminal = "screen-256color";
|
||||
|
||||
# TOOD: Check if neovim is enabled before config vim integrations
|
||||
|
||||
plugins = [
|
||||
{
|
||||
plugin = pkgs.tmuxPlugins.resurrect;
|
||||
plugin = tmuxPlugins.resurrect;
|
||||
extraConfig = ''
|
||||
set -g @resurrect-capture-pane-contents 'on'
|
||||
set -g @resurrect-strategy-nvim 'session'
|
||||
|
@ -35,7 +35,7 @@ in {
|
|||
}
|
||||
|
||||
{
|
||||
plugin = pkgs.tmuxPlugins.continuum;
|
||||
plugin = tmuxPlugins.continuum;
|
||||
extraConfig = ''
|
||||
set -g @continuum-restore 'on'
|
||||
'';
|
||||
|
@ -43,16 +43,11 @@ in {
|
|||
|
||||
{
|
||||
plugin =
|
||||
pkgs.tmuxPlugins.mkTmuxPlugin
|
||||
tmuxPlugins.mkTmuxPlugin
|
||||
{
|
||||
pluginName = "tmux-nerd-font-window-name";
|
||||
version = "2.1.1";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "joshmedeski";
|
||||
repo = "tmux-nerd-font-window-name";
|
||||
rev = "57961cb0a99b76f20e02639d398c973d81971d05";
|
||||
sha256 = "sha256-8P4jFEkcJn/JbdRAC5PCrLAGTJwFxCknllOjkD+PK9w=";
|
||||
};
|
||||
src = sources.tmux-nerd-font-window-name;
|
||||
nativeBuildInputs = [pkgs.makeWrapper];
|
||||
rtpFilePath = "tmux-nerd-font-window-name.tmux";
|
||||
postInstall = ''
|
||||
|
@ -65,8 +60,8 @@ in {
|
|||
};
|
||||
}
|
||||
|
||||
pkgs.tmuxPlugins.vim-tmux-navigator
|
||||
pkgs.tmuxPlugins.open
|
||||
tmuxPlugins.vim-tmux-navigator
|
||||
tmuxPlugins.open
|
||||
];
|
||||
|
||||
extraConfig = ''
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
namespace,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
inherit (pkgs) fetchFromGitHub;
|
||||
|
||||
sources = import ../../../../npins;
|
||||
cfg = config.${namespace}.tools.zsh;
|
||||
in {
|
||||
options.${namespace}.tools.zsh = {
|
||||
|
@ -36,22 +35,12 @@ in {
|
|||
plugins = [
|
||||
{
|
||||
name = "zsh-syntax-highlighting";
|
||||
src = fetchFromGitHub {
|
||||
owner = "zsh-users";
|
||||
repo = "zsh-syntax-highlighting";
|
||||
rev = "0.7.1";
|
||||
sha256 = "sha256-gOG0NLlaJfotJfs+SUhGgLTNOnGLjoqnUp54V9aFJg8=";
|
||||
};
|
||||
src = sources.zsh-syntax-highlighting;
|
||||
file = "zsh-syntax-highlighting.zsh";
|
||||
}
|
||||
{
|
||||
name = "powerlevel10k";
|
||||
src = fetchFromGitHub {
|
||||
owner = "romkatv";
|
||||
repo = "powerlevel10k";
|
||||
rev = "v1.17.0";
|
||||
sha256 = "sha256-fgrwbWj6CcPoZ6GbCZ47HRUg8ZSJWOsa7aipEqYuE0Q=";
|
||||
};
|
||||
src = sources.powerlevel10k;
|
||||
file = "powerlevel10k.zsh-theme";
|
||||
}
|
||||
{
|
||||
|
@ -61,12 +50,7 @@ in {
|
|||
}
|
||||
{
|
||||
name = "base16-shell";
|
||||
src = fetchFromGitHub {
|
||||
owner = "chriskempson";
|
||||
repo = "base16-shell";
|
||||
rev = "588691ba71b47e75793ed9edfcfaa058326a6f41";
|
||||
sha256 = "sha256-X89FsG9QICDw3jZvOCB/KsPBVOLUeE7xN3VCtf0DD3E=";
|
||||
};
|
||||
src = sources.base16-shell;
|
||||
file = "base16-shell.plugin.zsh";
|
||||
}
|
||||
];
|
||||
|
|
|
@ -26,6 +26,7 @@ in {
|
|||
awscli2
|
||||
direnv
|
||||
minio-client
|
||||
npins
|
||||
pre-commit
|
||||
git
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue