separate nixos from non-nixos configuration a bit
This commit is contained in:
parent
982f4260c8
commit
90c60edc62
1 changed files with 29 additions and 2 deletions
31
nix/home.nix
31
nix/home.nix
|
|
@ -16,22 +16,39 @@ let
|
|||
cargoSha256 = "1aqjgfpqsasy9qvw08ill7ig6k9n9rdkwxlg1z5g61z7cmi1p3i4";
|
||||
buildInputs = [ pkgs.pkg-config pkgs.openssl ] ++ (if pkgs.stdenv.isDarwin then [ pkgs.libiconv pkgs.darwin.apple_sdk.frameworks.Security ] else []);
|
||||
};
|
||||
|
||||
vim-goyo = pkgs.vimUtils.buildVimPlugin {
|
||||
name = "vim-goyo";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "junegunn";
|
||||
repo = "goyo.vim";
|
||||
rev = "6b6ed2734084fdbb6315357ddcaecf9c8e6f143d";
|
||||
sha256 = "1ywlz1hn54kxyp5q0angriaarimq7ys7m6sk6l4x8jr1g2yh0afz";
|
||||
};
|
||||
};
|
||||
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
direnv
|
||||
git-plan
|
||||
htop
|
||||
jq
|
||||
keybase
|
||||
lastpass-cli
|
||||
(let neuronSrc = builtins.fetchTarball https://github.com/srid/neuron/archive/master.tar.gz;
|
||||
in import neuronSrc)
|
||||
nox
|
||||
tree
|
||||
ranger
|
||||
ripgrep
|
||||
vlc
|
||||
zsh-autosuggestions
|
||||
zsh-history-substring-search
|
||||
zsh-syntax-highlighting
|
||||
];
|
||||
] ++ (if pkgs.stdenv.isDarwin then [
|
||||
lorri
|
||||
] else [
|
||||
slack
|
||||
]);
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
|
|
@ -115,6 +132,11 @@ in {
|
|||
eval "$(direnv hook zsh)"
|
||||
'');
|
||||
|
||||
shellAliases = {
|
||||
n = "neuron new";
|
||||
ns = "neuron search -a";
|
||||
};
|
||||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "typewritten";
|
||||
|
|
@ -154,6 +176,7 @@ in {
|
|||
LanguageClient-neovim
|
||||
deoplete-nvim
|
||||
papercolor-theme
|
||||
vim-goyo
|
||||
];
|
||||
|
||||
extraConfig = ''
|
||||
|
|
@ -161,6 +184,7 @@ in {
|
|||
|
||||
" ALE
|
||||
let g:ale_fix_on_save = 1
|
||||
let g:ale_elixir_credo_strict = 1
|
||||
let g:ale_fixers = {
|
||||
\ 'elm': ['elm-format', 'format'],
|
||||
\ 'javascript': ['prettier'],
|
||||
|
|
@ -169,6 +193,7 @@ in {
|
|||
\ 'typescriptreact': ['prettier'],
|
||||
\ 'ruby': ['rubocop', 'sorbet'],
|
||||
\ 'rust': ['rustfmt'],
|
||||
\ 'elixir': ['mix_format']
|
||||
\}
|
||||
|
||||
" Easymotion
|
||||
|
|
@ -320,6 +345,8 @@ in {
|
|||
defaultCommand = "rg --no-ignore --follow --files --hidden --smart-case --glob \\\"!.git/*\\\"";
|
||||
};
|
||||
|
||||
services.lorri.enable = !pkgs.stdenv.isDarwin;
|
||||
|
||||
# Let Home Manager install and manage itself.
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue