40 lines
709 B
Nix
40 lines
709 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
|
|
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
|
|
}
|
|
}]
|
|
}
|
|
}
|
|
'';
|
|
};
|
|
}
|