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:
Tim Schubert 2020-12-25 17:38:07 +01:00
parent 4724f264dd
commit e1c562191b
No known key found for this signature in database
GPG key ID: 99658A3EB5CD7C13
67 changed files with 1055 additions and 202 deletions

20
pkgs/keys/default.nix Normal file
View 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" ];
};
}

View file

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJyTgdVPPxQeL5KZo9frZQlDIv2QkelJw3gNGoGtUMfw tim@metis

View 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";
};
};
}

View 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

View file

@ -0,0 +1,3 @@
setlocal expandtab
setlocal shiftwidth=2
setlocal softtabstop=2

View file

@ -0,0 +1,2 @@
" Set up :make to use fish for syntax checking.
compiler fish

View file

@ -0,0 +1,3 @@
class Foo {
fun
}

View file

@ -0,0 +1,3 @@
setlocal expandtab
setlocal shiftwidth=2
setlocal softtabstop=2

View file

@ -0,0 +1,5 @@
let b:ale_fixers = ['prettier', 'eslint']
setlocal expandtab
setlocal shiftwidth=2
setlocal softtabstop=2

View 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"

View file

@ -0,0 +1,3 @@
setlocal expandtab
setlocal shiftwidth=4
setlocal softtabstop=4

View file

@ -0,0 +1,2 @@
let b:ale_linters = {'markdown': ['languagetool']}
let b:ale_fixers = {'markdown': ['languagetool']}

View file

@ -0,0 +1,3 @@
setlocal expandtab
setlocal shiftwidth=2
setlocal softtabstop=2

View 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']

View file

@ -0,0 +1,2 @@
let b:ale_linters = {'rust': ['rustc', 'rls', 'rust-analyzer']}
let b:ale_fixers = {'rust': ['rustfmt']}

View file

@ -0,0 +1,3 @@
setlocal expandtab
setlocal shiftwidth=2
setlocal softtabstop=2

View file

@ -0,0 +1,5 @@
let b:ale_fixers = ['prettier', 'eslint', 'tsserver']
setlocal expandtab
setlocal shiftwidth=2
setlocal softtabstop=2

View file

@ -0,0 +1,4 @@
setlocal expandtab
setlocal shiftwidth=2
setlocal softtabstop=2