Moved tmux theming from nvim module to tmux module
This commit is contained in:
parent
2ad5af4f90
commit
a656b8f481
|
@ -14,6 +14,8 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
xdg.dataFile."tmux-theme".source = ./tmux_theme;
|
||||||
|
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
enable = true;
|
enable = true;
|
||||||
keyMode = "vi";
|
keyMode = "vi";
|
||||||
|
@ -82,6 +84,7 @@ in {
|
||||||
# Eye Candy
|
# Eye Candy
|
||||||
# set -g @plugin 'mattdavis90/base16-tmux'
|
# set -g @plugin 'mattdavis90/base16-tmux'
|
||||||
# set -g @colors-base16 'darktooth'
|
# set -g @colors-base16 'darktooth'
|
||||||
|
source-file ${config.xdg.dataHome}/tmux-theme;
|
||||||
|
|
||||||
# Smart pane switching with awareness of Vim splits.
|
# Smart pane switching with awareness of Vim splits.
|
||||||
# See: https://github.com/christoomey/vim-tmux-navigator
|
# See: https://github.com/christoomey/vim-tmux-navigator
|
||||||
|
|
|
@ -3,25 +3,16 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
with lib; let
|
inherit (lib) mkIf mkEnableOption;
|
||||||
|
|
||||||
cfg = config.aa.apps.neovim;
|
cfg = config.aa.apps.neovim;
|
||||||
in {
|
in {
|
||||||
options.aa.apps.neovim = with types; {
|
options.aa.apps.neovim = {
|
||||||
enable = mkEnableOption "neovim";
|
enable = mkEnableOption "neovim";
|
||||||
|
|
||||||
tmuxThemePath = mkOption {
|
|
||||||
type = str;
|
|
||||||
default = "vim-tmuxline/tmux_theme";
|
|
||||||
description = "Where to store tmux theme generated by vim-tmuxline";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [neovim];
|
environment.systemPackages = with pkgs; [neovim];
|
||||||
|
|
||||||
aa.home.dataFile = {
|
|
||||||
${cfg.tmuxThemePath}.source = ./tmux_theme;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Generates a tmux statusline theme based off the theme in neovim
|
|
||||||
# May require some edits
|
|
||||||
|
|
||||||
nvim -c ":Tmuxline vim_statusline_1 | TmuxlineSnapshot! $(dirname "$0")/tmux_theme | qa!"
|
|
|
@ -1,19 +1,19 @@
|
||||||
{
|
{
|
||||||
options,
|
options,
|
||||||
config,
|
config,
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
inputs,
|
||||||
|
namespace,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
with lib; let
|
inherit (lib) mkAliasDefinitions mkOption;
|
||||||
cfg = config.aa.home;
|
inherit (lib.types) attrs;
|
||||||
in {
|
in {
|
||||||
imports = with inputs; [
|
imports = with inputs; [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
];
|
];
|
||||||
|
|
||||||
options.aa.home = with types; {
|
options.${namespace}.home = {
|
||||||
file = mkOption {
|
file = mkOption {
|
||||||
type = attrs;
|
type = attrs;
|
||||||
default = {};
|
default = {};
|
||||||
|
@ -37,7 +37,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
aa.home.extraOptions = {
|
${namespace}.home.extraOptions = {
|
||||||
home.stateVersion = config.system.stateVersion;
|
home.stateVersion = config.system.stateVersion;
|
||||||
home.file = mkAliasDefinitions options.aa.home.file;
|
home.file = mkAliasDefinitions options.aa.home.file;
|
||||||
xdg = {
|
xdg = {
|
||||||
|
|
Loading…
Reference in a new issue