improve comments and general tweaks

This commit is contained in:
Noah Masur
2022-05-29 13:44:45 -04:00
parent 3ea0e40121
commit 3ba26ccfd5
14 changed files with 76 additions and 34 deletions

View File

@ -3,11 +3,7 @@
home-manager.users.${config.user}.programs.direnv = {
enable = true;
nix-direnv.enable = true;
config = {
whitelist = {
prefix = [ "/home/${config.user}/dev/personal/dotfiles/" ];
};
};
config = { whitelist = { prefix = [ config.dotfilesPath ]; }; };
};
}

View File

@ -1,10 +1,12 @@
{ config, pkgs, lib, ... }: {
users.users.${config.user}.shell = pkgs.fish;
programs.fish.enable = true; # Needed for LightDM to remember username
programs.fish.enable =
true; # Needed for LightDM to remember username (TODO: fix)
home-manager.users.${config.user} = {
# Packages used in abbreviations and aliases
home.packages = with pkgs; [ curl ];
programs.fish = {
@ -89,7 +91,7 @@
tan = "tmux attach-session -t noah";
tnn = "tmux new-session -s noah";
# Vim
# Vim (overwritten by Neovim)
v = "vim";
vl = "vim -c 'normal! `0'";

View File

@ -18,6 +18,7 @@
shellAbbrs = { lf = "ls -lh | fzf"; };
};
# Global fzf configuration
home.sessionVariables = let fzfCommand = "fd --type file";
in {
FZF_DEFAULT_COMMAND = fzfCommand;

View File

@ -19,7 +19,7 @@ in {
home-manager.users.root.programs.git = {
enable = true;
extraConfig.safe.directory = "/home/${config.user}/dev/personal/dotfiles";
extraConfig.safe.directory = config.dotfilesPath;
};
home-manager.users.${config.user} = {
@ -29,7 +29,7 @@ in {
userEmail = config.gitEmail;
extraConfig = {
pager = { branch = "false"; };
safe = { directory = "/home/${config.user}/dev/personal/dotfiles"; };
safe = { directory = config.dotfilesPath; };
pull = { ff = "only"; };
init = { defaultBranch = "master"; };
};