30 lines
666 B
Nix
30 lines
666 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (config.modules.other.system) username;
|
|
in {
|
|
config = {
|
|
programs.direnv = {
|
|
enable = true;
|
|
package = pkgs.direnv;
|
|
nix-direnv.package = pkgs.nix-direnv;
|
|
|
|
# PLEASE BE SILENT
|
|
silent = true;
|
|
# We want direnv to load in our nix dev shells
|
|
loadInNixShell = true;
|
|
|
|
enableBashIntegration = true;
|
|
enableFishIntegration = true;
|
|
enableZshIntegration = true;
|
|
};
|
|
home-manager.users.${username} = {
|
|
programs.direnv = {
|
|
# yes stupid direnv does _not_ work with nushell in nixos options
|
|
enableNushellIntegration = true;
|
|
};
|
|
};
|
|
};
|
|
}
|