Move vim packages to pkgs
Add system config Split up modules into home and system sets Update Cleanup Move home config Add module attrs Fix empty LUKS device UUID Import local secrets
This commit is contained in:
parent
4724f264dd
commit
e1c562191b
67 changed files with 1055 additions and 202 deletions
20
pkgs/keys/default.nix
Normal file
20
pkgs/keys/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ stdenv }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "infra-keys";
|
||||
version = "1";
|
||||
|
||||
src = ./keys;
|
||||
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
mv * $out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Public keys for my infrastructure";
|
||||
license = licenses.publicDomain;
|
||||
platforms = platforms.all;
|
||||
maintainers = [ "dadada" ];
|
||||
};
|
||||
}
|
1
pkgs/keys/keys/dadada.pub
Normal file
1
pkgs/keys/keys/dadada.pub
Normal file
|
@ -0,0 +1 @@
|
|||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJyTgdVPPxQeL5KZo9frZQlDIv2QkelJw3gNGoGtUMfw tim@metis
|
20
pkgs/vimPlugins/default.nix
Normal file
20
pkgs/vimPlugins/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ pkgs, lib, fetchFromGitHub, ... }:
|
||||
with lib;
|
||||
{
|
||||
filetype = pkgs.vimUtils.buildVimPluginFrom2Nix {
|
||||
pname = "dadadaVimFiletype";
|
||||
version = "2010-11-06";
|
||||
src = ./filetype;
|
||||
};
|
||||
|
||||
spacemacsTheme = pkgs.vimUtils.buildVimPluginFrom2Nix {
|
||||
pname = "spacemacs-theme";
|
||||
version = "2.0.1";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "colepeters";
|
||||
repo = "spacemacs-theme.vim";
|
||||
rev = "056bba9bd05a2c97c63c28216a1c232cfb91529e";
|
||||
sha256 = "0iy3i6waigk759p2z59mrxkjc0p412y7d8zf3cjak4a9sh1sh6qz";
|
||||
};
|
||||
};
|
||||
}
|
11
pkgs/vimPlugins/filetype/ftplugin/cpp.vim
Normal file
11
pkgs/vimPlugins/filetype/ftplugin/cpp.vim
Normal file
|
@ -0,0 +1,11 @@
|
|||
let b:ale_fixers = ['clang-format', 'remove_trailing_lines', 'trim_whitespace']
|
||||
let b:ale_linters = ['clangd']
|
||||
|
||||
"setlocal tabstop=8 expandtab shiftwidth=2 smarttab
|
||||
" GNU Coding Standards
|
||||
setlocal cindent
|
||||
setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,h2,p5,t0,+2,(0,u0,w1,m1
|
||||
setlocal shiftwidth=2
|
||||
setlocal softtabstop=2
|
||||
setlocal textwidth=79
|
||||
setlocal fo-=ro fo+=cql
|
3
pkgs/vimPlugins/filetype/ftplugin/css.vim
Normal file
3
pkgs/vimPlugins/filetype/ftplugin/css.vim
Normal file
|
@ -0,0 +1,3 @@
|
|||
setlocal expandtab
|
||||
setlocal shiftwidth=2
|
||||
setlocal softtabstop=2
|
2
pkgs/vimPlugins/filetype/ftplugin/fish.vim
Normal file
2
pkgs/vimPlugins/filetype/ftplugin/fish.vim
Normal file
|
@ -0,0 +1,2 @@
|
|||
" Set up :make to use fish for syntax checking.
|
||||
compiler fish
|
3
pkgs/vimPlugins/filetype/ftplugin/foo.kt
Normal file
3
pkgs/vimPlugins/filetype/ftplugin/foo.kt
Normal file
|
@ -0,0 +1,3 @@
|
|||
class Foo {
|
||||
fun
|
||||
}
|
3
pkgs/vimPlugins/filetype/ftplugin/html.vim
Normal file
3
pkgs/vimPlugins/filetype/ftplugin/html.vim
Normal file
|
@ -0,0 +1,3 @@
|
|||
setlocal expandtab
|
||||
setlocal shiftwidth=2
|
||||
setlocal softtabstop=2
|
5
pkgs/vimPlugins/filetype/ftplugin/javascript.vim
Normal file
5
pkgs/vimPlugins/filetype/ftplugin/javascript.vim
Normal file
|
@ -0,0 +1,5 @@
|
|||
let b:ale_fixers = ['prettier', 'eslint']
|
||||
|
||||
setlocal expandtab
|
||||
setlocal shiftwidth=2
|
||||
setlocal softtabstop=2
|
5
pkgs/vimPlugins/filetype/ftplugin/kotlin.vim
Normal file
5
pkgs/vimPlugins/filetype/ftplugin/kotlin.vim
Normal file
|
@ -0,0 +1,5 @@
|
|||
setlocal expandtab
|
||||
setlocal shiftwidth=4
|
||||
setlocal softtabstop=4
|
||||
let g:ale_kotlin_languageserver_executable = "/home/tim/src/kotlin-language-server/server/build/install/server/bin/kotlin-language-server"
|
||||
|
3
pkgs/vimPlugins/filetype/ftplugin/ledger.vim
Normal file
3
pkgs/vimPlugins/filetype/ftplugin/ledger.vim
Normal file
|
@ -0,0 +1,3 @@
|
|||
setlocal expandtab
|
||||
setlocal shiftwidth=4
|
||||
setlocal softtabstop=4
|
2
pkgs/vimPlugins/filetype/ftplugin/markdown.md
Normal file
2
pkgs/vimPlugins/filetype/ftplugin/markdown.md
Normal file
|
@ -0,0 +1,2 @@
|
|||
let b:ale_linters = {'markdown': ['languagetool']}
|
||||
let b:ale_fixers = {'markdown': ['languagetool']}
|
3
pkgs/vimPlugins/filetype/ftplugin/nix.vim
Normal file
3
pkgs/vimPlugins/filetype/ftplugin/nix.vim
Normal file
|
@ -0,0 +1,3 @@
|
|||
setlocal expandtab
|
||||
setlocal shiftwidth=2
|
||||
setlocal softtabstop=2
|
4
pkgs/vimPlugins/filetype/ftplugin/python.vim
Normal file
4
pkgs/vimPlugins/filetype/ftplugin/python.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
" Check Python files with flake8 and pylint.
|
||||
let b:ale_linters = ['flake8', 'pylint']
|
||||
" Fix Python files with autopep8 and yapf.
|
||||
let b:ale_fixers = ['autopep8', 'yapf', 'add_blank_lines_for_python_control_statements', 'autopep8', 'remove_trailing_lines', 'reorder-python-imports', 'trim_whitespace']
|
2
pkgs/vimPlugins/filetype/ftplugin/rust.vim
Normal file
2
pkgs/vimPlugins/filetype/ftplugin/rust.vim
Normal file
|
@ -0,0 +1,2 @@
|
|||
let b:ale_linters = {'rust': ['rustc', 'rls', 'rust-analyzer']}
|
||||
let b:ale_fixers = {'rust': ['rustfmt']}
|
3
pkgs/vimPlugins/filetype/ftplugin/scss.vim
Normal file
3
pkgs/vimPlugins/filetype/ftplugin/scss.vim
Normal file
|
@ -0,0 +1,3 @@
|
|||
setlocal expandtab
|
||||
setlocal shiftwidth=2
|
||||
setlocal softtabstop=2
|
5
pkgs/vimPlugins/filetype/ftplugin/typescript.vim
Normal file
5
pkgs/vimPlugins/filetype/ftplugin/typescript.vim
Normal file
|
@ -0,0 +1,5 @@
|
|||
let b:ale_fixers = ['prettier', 'eslint', 'tsserver']
|
||||
|
||||
setlocal expandtab
|
||||
setlocal shiftwidth=2
|
||||
setlocal softtabstop=2
|
4
pkgs/vimPlugins/filetype/ftplugin/yaml.vim
Normal file
4
pkgs/vimPlugins/filetype/ftplugin/yaml.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
setlocal expandtab
|
||||
setlocal shiftwidth=2
|
||||
setlocal softtabstop=2
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue