mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
add local configs
This commit is contained in:
parent
5063a360ea
commit
8bfac91b35
1 changed files with 12 additions and 2 deletions
12
config.nix
12
config.nix
|
@ -51,11 +51,12 @@ let
|
||||||
|
|
||||||
environment.etc."tmux.conf".text = ''
|
environment.etc."tmux.conf".text = ''
|
||||||
source-file ${config.system.build.setTmuxOptions}
|
source-file ${config.system.build.setTmuxOptions}
|
||||||
|
|
||||||
bind 0 set status
|
bind 0 set status
|
||||||
|
|
||||||
set -g status-bg black
|
set -g status-bg black
|
||||||
set -g status-fg white
|
set -g status-fg white
|
||||||
|
|
||||||
|
source-file $HOME/.tmux.conf.local
|
||||||
'';
|
'';
|
||||||
|
|
||||||
launchd.daemons.nix-daemon =
|
launchd.daemons.nix-daemon =
|
||||||
|
@ -87,7 +88,12 @@ let
|
||||||
export PATH=$HOME/.nix-profile/bin:$HOME/.nix-profile/bin''${PATH:+:$PATH}
|
export PATH=$HOME/.nix-profile/bin:$HOME/.nix-profile/bin''${PATH:+:$PATH}
|
||||||
|
|
||||||
export NIX_PATH=nixpkgs=$HOME/.nix-defexpr/nixpkgs
|
export NIX_PATH=nixpkgs=$HOME/.nix-defexpr/nixpkgs
|
||||||
|
|
||||||
|
# Set up secure multi-user builds: non-root users build through the
|
||||||
|
# Nix daemon.
|
||||||
|
if [ "$USER" != root -a ! -w /nix/var/nix/db ]; then
|
||||||
export NIX_REMOTE=daemon
|
export NIX_REMOTE=daemon
|
||||||
|
fi
|
||||||
|
|
||||||
nixdarwin-rebuild () {
|
nixdarwin-rebuild () {
|
||||||
case $1 in
|
case $1 in
|
||||||
|
@ -98,6 +104,8 @@ let
|
||||||
"") return 1 ;;
|
"") return 1 ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
source $HOME/.zshrc.local
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -146,6 +154,8 @@ in {
|
||||||
let mapleader = ' '
|
let mapleader = ' '
|
||||||
nnoremap <Leader>p :FZF<CR>
|
nnoremap <Leader>p :FZF<CR>
|
||||||
nnoremap <silent> <Leader>e :exe 'FZF ' . expand('%:h')<CR>
|
nnoremap <silent> <Leader>e :exe 'FZF ' . expand('%:h')<CR>
|
||||||
|
|
||||||
|
source $HOME/.vimrc.local
|
||||||
'';
|
'';
|
||||||
vimrcConfig.vam.pluginDictionaries = [
|
vimrcConfig.vam.pluginDictionaries = [
|
||||||
{ names = [ "fzfWrapper" "youcompleteme" "fugitive" "surround" "vim-nix" "colors-solarized" ]; }
|
{ names = [ "fzfWrapper" "youcompleteme" "fugitive" "surround" "vim-nix" "colors-solarized" ]; }
|
||||||
|
|
Loading…
Reference in a new issue