Tweak nushell configuration
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
programs = {
|
programs = {
|
||||||
nushell = {
|
nushell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
environmentVariables = config.home.sessionVariables;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
use std/util "path add"
|
use std/util "path add"
|
||||||
path add ${config.home.homeDirectory}/src/bin
|
path add ${config.home.homeDirectory}/src/bin
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
file = lib.mkIf pkgs.hostPlatform.isDarwin {
|
|
||||||
#"Library/Application Support/com.mitchellh.ghostty/config".source = "${config.home.homeDirectory}/.config/ghostty/config";
|
|
||||||
"Library/Application Support/com.mitchellh.ghostty/config".source = config.xdg.configFile."ghostty/config".source;
|
|
||||||
};
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
AWS_SHARED_CREDENTIALS_FILE = "/run/agenix/cache-credentials";
|
AWS_SHARED_CREDENTIALS_FILE = "/run/agenix/cache-credentials";
|
||||||
CARAPACE_BRIDGES = "zsh,bash";
|
CARAPACE_BRIDGES = "zsh,bash";
|
||||||
EDITOR = "nvim";
|
EDITOR = lib.getExe config.programs.neovim.package;
|
||||||
GOPATH = "${config.home.homeDirectory}/src/go";
|
GOPATH = "${config.home.homeDirectory}/src/go";
|
||||||
GOBIN = "${config.home.homeDirectory}/src/bin";
|
GOBIN = "${config.home.homeDirectory}/src/bin";
|
||||||
LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN = "1";
|
LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN = "1";
|
||||||
@@ -60,7 +61,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
package = if pkgs.stdenv.hostPlatform.isDarwin then pkgs.ghostty-bin else pkgs.ghostty;
|
package = if pkgs.stdenv.hostPlatform.isDarwin then pkgs.ghostty-bin else pkgs.ghostty;
|
||||||
settings = {
|
settings = {
|
||||||
command = lib.getExe pkgs.nushell;
|
command = lib.getExe config.programs.nushell.package;
|
||||||
font-family = "Hacker";
|
font-family = "Hacker";
|
||||||
theme = "Dracula";
|
theme = "Dracula";
|
||||||
scrollback-limit = "1000000";
|
scrollback-limit = "1000000";
|
||||||
|
|||||||
+50
-39
@@ -18,37 +18,43 @@
|
|||||||
programs = {
|
programs = {
|
||||||
zellij = {
|
zellij = {
|
||||||
enable = true;
|
enable = true;
|
||||||
attachExistingSession = true;
|
|
||||||
enableZshIntegration = pkgs.stdenv.hostPlatform.isDarwin;
|
enableZshIntegration = pkgs.stdenv.hostPlatform.isDarwin;
|
||||||
settings = {
|
settings = {
|
||||||
default_shell = "xonsh";
|
default_shell = "xonsh";
|
||||||
plugins = {
|
plugins = {
|
||||||
autolock = {
|
autolock = {
|
||||||
_props.location = "https://github.com/fresh2dev/zellij-autolock/releases/download/0.2.2/zellij-autolock.wasm";
|
_props.location = "https://github.com/fresh2dev/zellij-autolock/releases/download/0.2.2/zellij-autolock.wasm";
|
||||||
_children = [ {
|
_children = [
|
||||||
is_enabled = true;
|
{
|
||||||
} {
|
is_enabled = true;
|
||||||
triggers = "nvim|vim|git";
|
}
|
||||||
} {
|
{
|
||||||
reaction_seconds = "0.3";
|
triggers = "nvim|vim|git";
|
||||||
} {
|
}
|
||||||
print_to_log = true;
|
{
|
||||||
} ];
|
reaction_seconds = "0.3";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
print_to_log = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
load_plugins.autolock = {};
|
load_plugins.autolock = { };
|
||||||
keybinds = {
|
keybinds = {
|
||||||
normal._children = [
|
normal._children = [
|
||||||
{
|
{
|
||||||
bind = {
|
bind = {
|
||||||
_args = [ "Enter" ];
|
_args = [ "Enter" ];
|
||||||
_children = [ {
|
_children = [
|
||||||
WriteChars = "\\u{000D}";
|
{
|
||||||
MessagePlugin = {
|
WriteChars = "\\u{000D}";
|
||||||
_args = [ "autolock" ];
|
MessagePlugin = {
|
||||||
_children = [{}];
|
_args = [ "autolock" ];
|
||||||
};
|
_children = [ { } ];
|
||||||
} ];
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@@ -92,27 +98,32 @@
|
|||||||
]; # /locked
|
]; # /locked
|
||||||
shared_except = {
|
shared_except = {
|
||||||
_args = [ "locked" ];
|
_args = [ "locked" ];
|
||||||
_children = [ {
|
_children = [
|
||||||
bind = {
|
{
|
||||||
_args = [ "Ctrl h" ];
|
bind = {
|
||||||
MoveFocusOrTab._args = [ "Left" ];
|
_args = [ "Ctrl h" ];
|
||||||
};
|
MoveFocusOrTab._args = [ "Left" ];
|
||||||
} {
|
};
|
||||||
bind = {
|
}
|
||||||
_args = [ "Ctrl j" ];
|
{
|
||||||
MoveFocus._args = [ "Down" ];
|
bind = {
|
||||||
};
|
_args = [ "Ctrl j" ];
|
||||||
} {
|
MoveFocus._args = [ "Down" ];
|
||||||
bind = {
|
};
|
||||||
_args = [ "Ctrl k" ];
|
}
|
||||||
MoveFocus._args = [ "Up" ];
|
{
|
||||||
};
|
bind = {
|
||||||
} {
|
_args = [ "Ctrl k" ];
|
||||||
bind = {
|
MoveFocus._args = [ "Up" ];
|
||||||
_args = [ "Ctrl l" ];
|
};
|
||||||
MoveFocusOrTab._args = [ "Right" ];
|
}
|
||||||
};
|
{
|
||||||
} ];
|
bind = {
|
||||||
|
_args = [ "Ctrl l" ];
|
||||||
|
MoveFocusOrTab._args = [ "Right" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
}; # /shared_except
|
}; # /shared_except
|
||||||
}; # /keybinds
|
}; # /keybinds
|
||||||
}; # /settings
|
}; # /settings
|
||||||
|
|||||||
Reference in New Issue
Block a user