mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
systems -> hosts
moved functions to /lib inputs over imports turned each module file into a nixosModule moved registry and $NIX_PATH pinning to /modules/pinning.nix
This commit is contained in:
parent
ee2beea680
commit
f43d0b741c
42 changed files with 224 additions and 240 deletions
27
modules/direnv.nix
Normal file
27
modules/direnv.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
_: {pkgs, ...}: {
|
||||
environment = {
|
||||
systemPackages = builtins.attrValues {
|
||||
inherit
|
||||
(pkgs)
|
||||
nix-direnv
|
||||
direnv
|
||||
;
|
||||
};
|
||||
|
||||
variables = {
|
||||
DIRENV_LOG_FORMAT = "";
|
||||
DIRENV_CONFIG = "${pkgs.nix-direnv}/share/nix-direnv";
|
||||
};
|
||||
};
|
||||
programs = {
|
||||
zsh.interactiveShellInit = ''
|
||||
eval "$(direnv hook zsh)"
|
||||
'';
|
||||
bash.interactiveShellInit = ''
|
||||
eval "$(direnv hook bash)"
|
||||
'';
|
||||
fish.interactiveShellInit = ''
|
||||
direnv hook fish | source
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue