direnv.nix: add nushell integration
This commit is contained in:
parent
ad7c823910
commit
8d183a5cf7
1 changed files with 26 additions and 11 deletions
|
@ -1,15 +1,30 @@
|
|||
_: {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
# PLEASE BE SILENT
|
||||
silent = true;
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (config.modules.other.system) username;
|
||||
in {
|
||||
config = {
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
package = pkgs.direnv;
|
||||
nix-direnv.package = pkgs.nix-direnv;
|
||||
|
||||
# We want direnv to load in our nix dev shells
|
||||
loadInNixShell = true;
|
||||
# PLEASE BE SILENT
|
||||
silent = true;
|
||||
# We want direnv to load in our nix dev shells
|
||||
loadInNixShell = true;
|
||||
|
||||
# Integrations for all our shells
|
||||
enableZshIntegration = true;
|
||||
enableFishIntegration = true;
|
||||
enableBashIntegration = 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue