System/home-manager/modules/programs/devel.nix

44 lines
785 B
Nix
Raw Permalink Normal View History

2024-11-29 05:46:01 +00:00
{
config,
lib,
pkgs,
2025-01-12 17:19:20 +00:00
inputs',
2024-11-29 05:46:01 +00:00
...
2025-01-13 19:53:42 +00:00
}: {
2024-11-29 05:46:01 +00:00
home.packages = with pkgs; [
# Git addons
git-secret
delta
2025-01-14 20:17:18 +00:00
pre-commit
2024-11-29 05:46:01 +00:00
# nix utilities
comma
nix-du
sops
hut
2025-01-12 17:19:20 +00:00
# Markdown
cmark-gfm
pandoc
mdbook
2024-11-29 05:46:01 +00:00
];
programs = {
direnv.enable = true;
2024-11-29 22:26:53 +00:00
# Configure direnv with nushell
2024-11-29 22:31:27 +00:00
nushell.extraConfig = ''
2024-11-29 22:26:53 +00:00
$env.config = {
hooks: {
pre_prompt: [{ ||
if (which direnv | is-empty) {
return
}
direnv export json | from json | default {} | load-env
if 'ENV_CONVERSIONS' in $env and 'PATH' in $env.ENV_CONVERSIONS {
$env.PATH = do $env.ENV_CONVERSIONS.PATH.from_string $env.PATH
}
}]
}
}
'';
2024-11-29 05:46:01 +00:00
};
}