some more splitting
This commit is contained in:
parent
7edd2c9679
commit
160f829729
4 changed files with 64 additions and 67 deletions
|
|
@ -34,15 +34,8 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ ./hardware-configuration.nix ];
|
||||||
./hardware-configuration.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.loader.grub.enable = true;
|
|
||||||
boot.loader.grub.version = 2;
|
|
||||||
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
|
||||||
|
|
||||||
# networking.hostName = "nixos"; # Define your hostname.
|
|
||||||
time.timeZone = "Europe/Berlin";
|
time.timeZone = "Europe/Berlin";
|
||||||
|
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
|
|
|
||||||
|
|
@ -18,5 +18,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
boot.loader.grub.enable = true;
|
||||||
|
boot.loader.grub.version = 2;
|
||||||
|
boot.loader.grub.device = "/dev/sda";
|
||||||
|
|
||||||
|
networking.hostName = "mc3";
|
||||||
|
networking.domain = "mc-fucker.cool";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
60
vim.nix
60
vim.nix
|
|
@ -3,65 +3,7 @@ with import <nixpkgs> {};
|
||||||
vim_configurable.customize {
|
vim_configurable.customize {
|
||||||
name = "vim";
|
name = "vim";
|
||||||
vimrcConfig = {
|
vimrcConfig = {
|
||||||
customRC = ''
|
customRC = builtins.readFile ./vimrc;
|
||||||
set laststatus=2
|
|
||||||
|
|
||||||
set number
|
|
||||||
set encoding=utf8
|
|
||||||
set ffs=unix,dos,mac
|
|
||||||
set nobackup
|
|
||||||
set nowb
|
|
||||||
set noswapfile
|
|
||||||
|
|
||||||
set shiftwidth=4
|
|
||||||
set tabstop=4
|
|
||||||
set expandtab
|
|
||||||
|
|
||||||
set lcs=trail:·,tab:»·
|
|
||||||
set list
|
|
||||||
set ruler
|
|
||||||
"set so=7
|
|
||||||
set ignorecase
|
|
||||||
set smartcase
|
|
||||||
set incsearch
|
|
||||||
set hlsearch
|
|
||||||
set showmatch
|
|
||||||
set modeline
|
|
||||||
|
|
||||||
set ai "Auto indent
|
|
||||||
set si "Smart indent
|
|
||||||
set nowrap "Don't wrap lines
|
|
||||||
syntax on
|
|
||||||
"colors peaksea
|
|
||||||
|
|
||||||
set statusline+=%#warningmsg#
|
|
||||||
set statusline+=%{SyntasticStatuslineFlag()}
|
|
||||||
set statusline+=%*
|
|
||||||
|
|
||||||
let g:syntastic_always_populate_loc_list = 1
|
|
||||||
let g:syntastic_auto_loc_list = 1
|
|
||||||
let g:syntastic_check_on_open = 1
|
|
||||||
let g:syntastic_check_on_wq = 1
|
|
||||||
let g:syntastic_cpp_compiler = 'g++-5'
|
|
||||||
let g:syntastic_cpp_compiler_options = ' -std=c++11 -stdlib=libc++ -I. -I..'
|
|
||||||
if ! has("gui_running")
|
|
||||||
set t_Co=256
|
|
||||||
endif
|
|
||||||
set wildmenu
|
|
||||||
set showcmd
|
|
||||||
" Let's save undo info!
|
|
||||||
if !isdirectory($HOME."/.cache")
|
|
||||||
call mkdir($HOME."/.cache", "", 0770)
|
|
||||||
endif
|
|
||||||
if !isdirectory($HOME."/.cache/vim")
|
|
||||||
call mkdir($HOME."/.cache/vim", "", 0770)
|
|
||||||
endif
|
|
||||||
if !isdirectory($HOME."/.cache/vim/undo-dir")
|
|
||||||
call mkdir($HOME."/.cache/vim/undo-dir", "", 0700)
|
|
||||||
endif
|
|
||||||
set undodir=~/.cache/vim/undo-dir
|
|
||||||
set undofile
|
|
||||||
'';
|
|
||||||
packages.vim = with pkgs.vimPlugins; {
|
packages.vim = with pkgs.vimPlugins; {
|
||||||
start = [
|
start = [
|
||||||
airline
|
airline
|
||||||
|
|
|
||||||
57
vimrc
Normal file
57
vimrc
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
set laststatus=2
|
||||||
|
|
||||||
|
set number
|
||||||
|
set encoding=utf8
|
||||||
|
set ffs=unix,dos,mac
|
||||||
|
set nobackup
|
||||||
|
set nowb
|
||||||
|
set noswapfile
|
||||||
|
|
||||||
|
set shiftwidth=4
|
||||||
|
set tabstop=4
|
||||||
|
set expandtab
|
||||||
|
|
||||||
|
set lcs=trail:·,tab:»·
|
||||||
|
set list
|
||||||
|
set ruler
|
||||||
|
set so=7
|
||||||
|
set ignorecase
|
||||||
|
set smartcase
|
||||||
|
set incsearch
|
||||||
|
set hlsearch
|
||||||
|
set showmatch
|
||||||
|
set modeline
|
||||||
|
|
||||||
|
set ai "Auto indent
|
||||||
|
set si "Smart indent
|
||||||
|
set nowrap "Don't wrap lines
|
||||||
|
syntax on
|
||||||
|
"colors peaksea
|
||||||
|
|
||||||
|
set statusline+=%#warningmsg#
|
||||||
|
set statusline+=%{SyntasticStatuslineFlag()}
|
||||||
|
set statusline+=%*
|
||||||
|
|
||||||
|
let g:syntastic_always_populate_loc_list = 1
|
||||||
|
let g:syntastic_auto_loc_list = 1
|
||||||
|
let g:syntastic_check_on_open = 1
|
||||||
|
let g:syntastic_check_on_wq = 1
|
||||||
|
let g:syntastic_cpp_compiler = 'g++-5'
|
||||||
|
let g:syntastic_cpp_compiler_options = ' -std=c++11 -stdlib=libc++ -I. -I..'
|
||||||
|
if ! has("gui_running")
|
||||||
|
set t_Co=256
|
||||||
|
endif
|
||||||
|
set wildmenu
|
||||||
|
set showcmd
|
||||||
|
" Let's save undo info!
|
||||||
|
if !isdirectory($HOME."/.cache")
|
||||||
|
call mkdir($HOME."/.cache", "", 0770)
|
||||||
|
endif
|
||||||
|
if !isdirectory($HOME."/.cache/vim")
|
||||||
|
call mkdir($HOME."/.cache/vim", "", 0770)
|
||||||
|
endif
|
||||||
|
if !isdirectory($HOME."/.cache/vim/undo-dir")
|
||||||
|
call mkdir($HOME."/.cache/vim/undo-dir", "", 0700)
|
||||||
|
endif
|
||||||
|
set undodir=~/.cache/vim/undo-dir
|
||||||
|
set undofile
|
||||||
Loading…
Add table
Reference in a new issue