Move more packages to home-manager

This commit is contained in:
Johannes Rothe 2024-09-29 22:55:55 +02:00
parent 07d0dc649d
commit b3326b16a9
2 changed files with 23 additions and 13 deletions

View File

@ -100,7 +100,6 @@
ack
avrdude
bind
black # code formatting
calibre
cmake
cryptsetup
@ -122,14 +121,9 @@
gnucash
gnumake
gnupg
go
google-cloud-sdk
gopls
gotools
htop
inkscape
ispell
jq
keychain
libreoffice
mosquitto
@ -139,14 +133,7 @@
pavucontrol
portfolio
pulseaudio
pylint
python311
python311Packages.flake8
python311Packages.ipython
rusti-cal
signal-desktop
silver-searcher
shellcheck
spotify
sqlite
syncthing

View File

@ -2,7 +2,20 @@
{
home.packages = with pkgs; [
black
go
gopls
gotools
htop
jq
pylint
python311
python311Packages.flake8
python311Packages.ipython
rusti-cal
roboto-mono
silver-searcher
shellcheck
(nerdfonts.override { fonts = [ "RobotoMono" ]; })
];
fonts.fontconfig.enable = true;
@ -15,6 +28,7 @@
exec sway
end
'';
# TODO make mails configurable
# disable greeting
shellInit = ''
set fish_greeting
@ -102,6 +116,7 @@
enable = true;
defaultEditor = true;
# List of supported plugins: nix-env -f '<nixpkgs>' -qaP -A vimPlugins
# TODO Black plugin missing
plugins = [
pkgs.vimPlugins.ale
pkgs.vimPlugins.gitgutter
@ -156,6 +171,10 @@
autocmd FileType go nnoremap gd <Plug>(go-def)
augroup end
" Ale
let g:ale_linters = {'python': ['flake8', 'mypy'],'javascript': ['eslint']}
let g:ale_fixers = {'python': ['black', 'isort']}
let g:ale_python_pylint_options = '--disable=C0111,C0114'
" YouCompleteMe
let g:ycm_gopls_binary_path = "${pkgs.gopls}/bin/gopls"
@ -176,6 +195,10 @@
if exists("g:loaded_webdevicons")
call webdevicons#refresh()
endif
" terraform
let g:terraform_fmt_on_save = 1
let g:terraform_align = 1
'';
};