Files
serhao/devshell.nix

55 lines
909 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
dua
];
# Add environment variables
env = { };
# Load custom bash code
shellHook = ''
export NU_CONFIG=${nu-config}
nu --config ${nu-config}
exit 0
'';
}