direnv
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Jake Hillion 2023-07-26 20:45:47 +01:00
parent 39be74d976
commit 6bc301694a

View File

@ -1,10 +1,21 @@
{ pkgs, lib, config, ... }:
{
config.users.defaultUserShell = pkgs.zsh;
config = {
users.defaultUserShell = pkgs.zsh;
config.programs.thefuck.enable = true;
config.programs.zsh = {
environment.systemPackages = with pkgs; [ direnv ];
nix.settings = {
keep-outputs = true;
keep-derivations = true;
};
custom.impermanence.userExtraDirs.jake = [
".local/share/direnv"
];
programs.thefuck.enable = true;
programs.zsh = {
enable = true;
histSize = 1000000;
histFile = "$HOME/.zsh_history";
@ -21,6 +32,12 @@
shellAliases = {
"nixos-rebuild" = "nixos-rebuild --flake \"/etc/nixos#${config.networking.fqdn}\"";
};
interactiveShellInit = with pkgs; ''
eval "$(${direnv}/bin/direnv hook zsh)"
source ${nix-direnv}/share/nix-direnv/direnvrc
'';
};
};
}