nixos/home/common.nix

97 lines
1.8 KiB
Nix

{ config, pkgs, ...}:
{
home.sessionVariables = {
EDITOR = "nvim";
VISUAL = "nvim";
};
programs = {
mpv = {
enable = true;
package = pkgs.mpv.override {
scripts = with pkgs.mpvScripts; [
sponsorblock
];
};
config = {
profile = "high-quality";
ytdl-format = "bestvideo+bestaudio";
cache-default = 4000000;
loop-file = "inf";
};
extraInput = ''
r cycle_values video-rotate 90 180 270 0
'';
};
neovim = {
enable = true;
viAlias = true;
vimAlias = true;
extraConfig = ''
set nocompatible
syntax on
set fileformat=unix
set encoding=utf8
set number relativenumber
set wrap
set tabstop=4
set shiftwidth=4
set softtabstop=4
set smarttab
set autoindent
set colorcolumn=80
highlight ColorColumn ctermbg=8
set clipboard=unnamed,unnamedplus
set list listchars=tab:>-,trail:_,extends:>,precedes:<,nbsp:~
set showbreak=>
let mapleader=" "
"# disable macro mode
map q <Nop>
'';
};
tmux = {
enable = true;
historyLimit = 10000;
mouse = true;
extraConfig = ''
'';
};
fzf = {
enable = true;
enableZshIntegration = true;
};
zsh = {
enable = true;
dotDir = "${config.xdg.configHome}/zsh";
#enableCompletions = true;
#autosuggestions.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh = {
enable = true;
plugins = [ "git" ];
theme = "daveverwer";
};
};
git = {
enable = true;
settings.user.Name = "Faris";
settings.user.email = "faris@mektem.com";
};
};
}