Update Channels & Configuration

This commit is contained in:
Evan Reichard 2023-09-08 08:41:16 -04:00
parent 8444f0f341
commit 042a5a069c
5 changed files with 32 additions and 16 deletions

View File

@ -1 +1,25 @@
# Nix Home Manager Configuration
## Upgrade
```
# Update System Channels
sudo nix-channel --add https://nixos.org/channels/nixpkgs-23.05-darwin nixpkgs
sudo nix-channel --update
# Update Home Manager
nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz home-manager
nix-channel --update
# Build Home Manager
home-manager switch
```
## Clean Garbage
NOTE: This will remove previous generations
```
nix-collect-garbage --delete-old
sudo nix-collect-garbage --delete-old
```

View File

@ -20,7 +20,7 @@ in
# Home Manager Config
home.username = "evanreichard";
home.homeDirectory = "/Users/evanreichard";
home.stateVersion = "22.05";
home.stateVersion = "23.05";
programs.home-manager.enable = true;
# Global Packages

View File

@ -39,9 +39,9 @@ local diagnostics_active = true
local toggle_diagnostics = function()
diagnostics_active = not diagnostics_active
if diagnostics_active then
vim.diagnostic.show()
vim.diagnostic.enable()
else
vim.diagnostic.hide()
vim.diagnostic.disable()
end
end

View File

@ -99,10 +99,8 @@ null_ls.setup({
null_ls.builtins.formatting.nixpkgs_fmt,
null_ls.builtins.formatting.lua_format,
null_ls.builtins.formatting.prettier, null_ls.builtins.formatting.gofmt,
null_ls.builtins.diagnostics.sqlfluff
.with({extra_args = {"--dialect", "ansi"}}),
null_ls.builtins.diagnostics.sqlfluff,
null_ls.builtins.formatting.sqlfluff
.with({extra_args = {"--dialect", "ansi"}})
},
on_attach = function(client, bufnr)
if client.supports_method("textDocument/formatting") then

View File

@ -48,22 +48,14 @@ in
# ------------------
lualine-nvim # Bottom Line
noice-nvim # UI Tweaks
nvim-notify # Noice Dependency
nord-nvim # Theme
nvim-web-devicons # Dev Icons
# ------------------
# --- Treesitter ---
# ------------------
(
nvim-treesitter.withPlugins (
# Exclude Outdated Packages (Causes Issues)
plugins: with pkgs; subtractLists [
tree-sitter-grammars.tree-sitter-bash
tree-sitter-grammars.tree-sitter-kotlin
]
tree-sitter.allGrammars
)
)
nvim-treesitter.withAllGrammars
# ------------------
# ----- Silicon ----
@ -106,6 +98,7 @@ in
# Telescope Dependencies
ripgrep
fd
tree-sitter
# LSP Dependencies
nodePackages.pyright
@ -113,6 +106,7 @@ in
nodePackages.typescript-language-server
nodePackages.vscode-langservers-extracted
gopls
go
# Formatters
luaformatter