Minor refactors & fixes

This commit is contained in:
Henrik Lissner 2019-12-09 02:56:13 -05:00
parent 65be30feec
commit 36d6e31fa5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
7 changed files with 15 additions and 18 deletions

View file

@ -1,4 +0,0 @@
#!/usr/bin/env zsh
alias vim=nvim
alias v=nvim

View file

@ -1,9 +1,6 @@
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
export ZSH_CACHE="$XDG_CACHE_HOME/zsh"
export ZGEN_DIR="$XDG_CACHE_HOME/zgen"
export ZGEN_SOURCE="$ZGEN_DIR/zgen.zsh"
if [[ ! -d "$ZGEN_SOURCE" ]]; then
if [[ ! -d "$ZGEN_DIR" ]]; then
git clone https://github.com/tarjoilija/zgen "$ZGEN_DIR"
fi

View file

@ -48,6 +48,11 @@ alias ngc='nix-collect-garbage -d'
alias nre='sudo nixos-rebuild'
alias nup='sudo nix-channel --update && nre'
if command -v nvim >/dev/null; then
alias vim=nvim
alias v=nvim
fi
autoload -U zmv
take() {

View file

@ -10,7 +10,7 @@ in
#!${stdenv.shell}
if ! pgrep -x spotifyd >/dev/null; then
spotifyd --backend pulseaudio \
--cache_path ~/.cache/spotifyd \
--cache_path "$HOME/.cache/spotifyd" \
--username accounts@v0.io \
--password $(pass www/spotify.com)
fi

View file

@ -2,11 +2,6 @@
{
environment = {
sessionVariables = {
BROWSER = "firefox";
XDG_DESKTOP_DIR = "$HOME"; # prevent firefox creating ~/Desktop
};
systemPackages = with pkgs; [
firefox-bin
(pkgs.writeScriptBin "firefox-private" ''
@ -22,5 +17,9 @@
categories = "Network";
})
];
variables = {
BROWSER = "firefox";
XDG_DESKTOP_DIR = "$HOME"; # prevent firefox creating ~/Desktop
};
};
}

View file

@ -12,8 +12,4 @@
neovim
];
};
home-manager.users.hlissner.xdg.configFile = {
"zsh/rc.d/aliases.vim.zsh".source = <config/vim/aliases.zsh>;
};
}

View file

@ -14,6 +14,10 @@
htop
tree
];
variables = {
ZDOTDIR = "$XDG_CONFIG_HOME/zsh";
ZSH_CACHE = "$XDG_CACHE_HOME/zsh";
};
};
programs.zsh = {