Skip to content

Commit

Permalink
Add more config such as direnv and null-ls
Browse files Browse the repository at this point in the history
joinemm committed Jan 13, 2024
1 parent ec9011c commit d96a514
Showing 5 changed files with 46 additions and 6 deletions.
31 changes: 29 additions & 2 deletions home-modules/neovim.nix
Original file line number Diff line number Diff line change
@@ -132,14 +132,13 @@
};

nvim-colorizer.enable = true;
fidget.enable = true;
# fidget.enable = true;
lightline.enable = true;
indent-blankline.enable = true;
gitgutter.enable = true;
telescope.enable = true;
nvim-autopairs.enable = true;
trouble.enable = true;
lsp-format.enable = true;
nvim-lightbulb.enable = true;
cmp-nvim-lsp.enable = true;
cmp-treesitter.enable = true;
@@ -200,6 +199,33 @@
};
};

lsp-format.enable = true;

none-ls = {
enable = true;
enableLspFormat = true;
sources = {
code_actions = {
shellcheck.enable = true;
statix.enable = true;
};
diagnostics = {
deadnix.enable = true;
gitlint.enable = true;
luacheck.enable = true;
shellcheck.enable = true;
};
formatting = {
jq.enable = true;
markdownlint.enable = true;
rustfmt.enable = true;
sqlfluff.enable = true;
shfmt.enable = true;
stylua.enable = true;
};
};
};

lsp = {
enable = true;
keymaps = {
@@ -226,6 +252,7 @@
settings.formatting.command = ["alejandra"];
};
lua-ls.enable = true;
bashls.enable = true;
pylsp = {
enable = true;
settings.plugins = {
9 changes: 9 additions & 0 deletions home-modules/picom.nix
Original file line number Diff line number Diff line change
@@ -20,5 +20,14 @@
fadeExclude = [
"class_g = 'xsecurelock'"
];
# disable vsync for fullscreen applications
settings = {
unredir-if-possible = true;
};
# and notifications that may draw over them
wintypes = {
notification.redir-ignore = true;
notify.redir-ignore = true;
};
};
}
6 changes: 6 additions & 0 deletions home-modules/zsh.nix
Original file line number Diff line number Diff line change
@@ -9,6 +9,11 @@
# run commands without installing them
# , <cmd>
nix-index-database.comma.enable = true;

direnv = {
enable = true;
enableZshIntegration = true;
};
};

programs.zsh = {
@@ -46,6 +51,7 @@
--memory-format "{/1}{-}{/}{/2}{-}{/}{} / {}"
'';
copy = "xclip -selection clipboard";
dev = "nix develop --impure -c $SHELL";
};

envExtra = ''
2 changes: 0 additions & 2 deletions hosts/zeus/configuration.nix
Original file line number Diff line number Diff line change
@@ -108,7 +108,6 @@ in {
with pkgs; [
# languages and dev tools
python3
pipenv
rustup
lua
nodejs
@@ -138,7 +137,6 @@ in {
playerctl
pulseaudio
alsa-utils
pre-commit
jq # json parser
fd # faster find
dig
4 changes: 2 additions & 2 deletions overlays/dwmblocks.nix
Original file line number Diff line number Diff line change
@@ -3,8 +3,8 @@
src = pkgs.fetchFromGitHub {
owner = "joinemm";
repo = "dwmblocks";
rev = "5eb42c9b33247bea07d7e64c460d628c244fbd00";
sha256 = "sha256-UT6O/xXfQVDacFAOUlOkClp44wkXv07fiWhtZeep5KI=";
rev = "367ae57afd8d4cfdc663c239febb9b85638502d0";
sha256 = "sha256-X51HAexp7Dmr7TZHdiqfu+B4YzTiEOsBqAkxw16zPJc=";
};
nativeBuildInputs = with pkgs; [
xorg.libX11

0 comments on commit d96a514

Please sign in to comment.