Add direnv, reorder home.nix

This commit is contained in:
Sam W 2022-01-10 13:22:07 +00:00
parent 265b691eab
commit aa68e8619a
1 changed files with 33 additions and 19 deletions

View File

@ -5,6 +5,39 @@ in {
home.packages = mypkgs.all; home.packages = mypkgs.all;
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;
# Shell and env-y stuff
zsh = {
enable = true;
envExtra = ''
export SSH_AUTH_SOCK=/Users/sam.willcocks/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh
'';
shellAliases = {
g = "git";
cat = "bat";
hmswitch = ''home-manager switch --flake ".#$(hostname -s)"'';
nrswitch = "nixos-rebuild switch --flake '.#'";
};
prezto = {
enable = true;
prompt.theme = "giddie";
};
plugins = [{
name = "zsh-z";
file = "share/zsh-z/zsh-z.plugin.zsh";
src = pkgs.zsh-z;
}];
};
direnv = {
enable = true;
nix-direnv.enable = true;
nix-direnv.enableFlakes = true;
};
fzf.enable = true;
# Tools
git = { git = {
enable = true; enable = true;
userName = "Sam Willcocks"; userName = "Sam Willcocks";
@ -39,24 +72,5 @@ in {
include.path = "~/.gitconfig.local"; include.path = "~/.gitconfig.local";
}; };
}; };
fzf.enable = true;
zsh = {
enable = true;
shellAliases = {
g = "git";
cat = "bat";
hmswitch = ''home-manager switch --flake ".#$(hostname -s)"'';
nrswitch = "nixos-rebuild switch --flake '.#'";
};
prezto = {
enable = true;
prompt.theme = "giddie";
};
plugins = [{
name = "zsh-z";
file = "share/zsh-z/zsh-z.plugin.zsh";
src = pkgs.zsh-z;
}];
};
}; };
} }