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

40 lines
718 B
Nix

{
config,
lib,
pkgs,
...
}:
{
home.packages = with pkgs; [
# Git addons
git-secret
delta
# nix utilities
comma
nix-du
sops
hut
];
programs = {
direnv.enable = true;
# Configure direnv with nushell
programs.nushell.extraConfig = ''
$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
}
}]
}
}
'';
};
}