mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
moved functions to /lib inputs over imports turned each module file into a nixosModule moved registry and $NIX_PATH pinning to /modules/pinning.nix
27 lines
528 B
Nix
27 lines
528 B
Nix
_: {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
|
|
'';
|
|
};
|
|
}
|