mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
localModules -> local
moved keys to their own module updated nix switching pinning method
This commit is contained in:
parent
2057ff5d17
commit
160a5c3ffe
24 changed files with 187 additions and 109 deletions
|
|
@ -5,11 +5,9 @@ _: {pkgs, ...}: {
|
|||
DIRENV_LOG_FORMAT = "";
|
||||
DIRENV_CONFIG = "/etc/direnv";
|
||||
};
|
||||
#other direnv configuration goes here
|
||||
etc."direnv/direnvrc".text = ''
|
||||
source ${pkgs.nix-direnv}/share/nix-direnv/direnvrc
|
||||
if [ -e $HOME/.config/direnv/direnvrc ] ; then
|
||||
source $HOME/.config/direnv/direnvrc
|
||||
fi
|
||||
'';
|
||||
};
|
||||
programs = {
|
||||
|
|
@ -23,12 +21,14 @@ _: {pkgs, ...}: {
|
|||
eval "$(direnv hook bash)"
|
||||
fi
|
||||
'';
|
||||
# fish.enable = true;
|
||||
# fish.interactiveShellInit = ''
|
||||
# if status --is-interactive; and not printenv PATH | grep -qc '/nix/store'; and [ -z "$IN_NIX_SHELL" ];
|
||||
# direnv hook fish | source;
|
||||
# echo "loaded direnv";
|
||||
# end
|
||||
# '';
|
||||
# doesn't work for some reason
|
||||
# fish.enable = true;
|
||||
# fish.interactiveShellInit = ''
|
||||
# set -g direnv_fish_mode disable_arrow
|
||||
# if status --is-interactive; and not printenv PATH | grep -qc '/nix/store'; and [ -z "$IN_NIX_SHELL" ];
|
||||
# direnv hook fish | source;
|
||||
# echo "loaded direnv";
|
||||
# end
|
||||
# '';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue