54 lines
901 B
Nix
54 lines
901 B
Nix
{ pkgs }:
|
|
let
|
|
helix-config = pkgs.writeText "helix.conf" ''
|
|
[editor.cursor-shape]
|
|
insert = "bar"
|
|
normal = "block"
|
|
select = "underline"
|
|
|
|
[editor.indent-guides]
|
|
render = true
|
|
character = "╎" # Some characters that work well: "▏", "┆", "┊", "⸽"
|
|
skip-levels = 1
|
|
'';
|
|
|
|
nu-config = pkgs.writeText "nu.conf" ''
|
|
$env.config = {
|
|
show_banner: false,
|
|
}
|
|
alias "hx" = hx -c ${helix-config}
|
|
'';
|
|
in
|
|
pkgs.mkShell {
|
|
# Add build dependencies
|
|
packages = with pkgs; [
|
|
yazi
|
|
ouch
|
|
asciinema
|
|
posting
|
|
helix
|
|
wget
|
|
httpie
|
|
nushell
|
|
|
|
vscode-langservers-extracted
|
|
markdown-oxide
|
|
marksman
|
|
nil
|
|
nixfmt
|
|
nixd
|
|
systemd-lsp
|
|
zellij
|
|
];
|
|
|
|
# Add environment variables
|
|
env = { };
|
|
|
|
# Load custom bash code
|
|
shellHook = ''
|
|
export NU_CONFIG=${nu-config}
|
|
nu --config ${nu-config}
|
|
exit 0
|
|
'';
|
|
}
|