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 = {
|
config,
|
||||||
enable = true;
|
pkgs,
|
||||||
# PLEASE BE SILENT
|
...
|
||||||
silent = true;
|
}: 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
|
# PLEASE BE SILENT
|
||||||
loadInNixShell = true;
|
silent = true;
|
||||||
|
# We want direnv to load in our nix dev shells
|
||||||
|
loadInNixShell = true;
|
||||||
|
|
||||||
# Integrations for all our shells
|
enableBashIntegration = true;
|
||||||
enableZshIntegration = true;
|
enableFishIntegration = true;
|
||||||
enableFishIntegration = true;
|
enableZshIntegration = true;
|
||||||
enableBashIntegration = 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