From 73fbc14e7af3abb62cfbddfbde41bac711cb2411 Mon Sep 17 00:00:00 2001 From: Michael Thomson Date: Thu, 4 Dec 2025 15:14:09 -0500 Subject: [PATCH] update --- hosts/wsl/home.nix | 1 + modules/home-manager/git.nix | 14 +++++++++++- modules/home-manager/kubernetes.nix | 2 ++ modules/home-manager/nixcats/default.nix | 20 +++++++++++++++++- modules/home-manager/nixcats/init.lua | 17 ++++++++++++++- modules/nixos/postgres.nix | 27 ++++++++++++------------ 6 files changed, 65 insertions(+), 16 deletions(-) diff --git a/hosts/wsl/home.nix b/hosts/wsl/home.nix index 8d20bf4..1de02bb 100644 --- a/hosts/wsl/home.nix +++ b/hosts/wsl/home.nix @@ -17,6 +17,7 @@ ../../modules/home-manager/syncthing.nix ../../modules/home-manager/bitwarden.nix ../../modules/home-manager/kitty.nix + ../../modules/home-manager/kubernetes.nix ]; home.username = "mthomson"; home.homeDirectory = "/home/mthomson"; diff --git a/modules/home-manager/git.nix b/modules/home-manager/git.nix index ae8e0c9..4c39901 100644 --- a/modules/home-manager/git.nix +++ b/modules/home-manager/git.nix @@ -64,7 +64,7 @@ }; includes = [ { - condition = "gitdir:~/dev/work/"; + condition = "gitdir:~/dev/work/konrad/"; contents = { user = { email = "mthomson@konradgroup.com"; @@ -72,6 +72,18 @@ }; }; } + { + condition = "gitdir:~/dev/work/symcor/"; + contents = { + user = { + email = "mthomson@symcor.com"; + name = "Michael Thomson"; + }; + http = { + sslVerify = false; + }; + }; + } ]; }; }; diff --git a/modules/home-manager/kubernetes.nix b/modules/home-manager/kubernetes.nix index 3b8757a..0536ae4 100644 --- a/modules/home-manager/kubernetes.nix +++ b/modules/home-manager/kubernetes.nix @@ -9,6 +9,8 @@ velero fluxcd kompose + kubernetes-helm + envsubst ]; programs = { diff --git a/modules/home-manager/nixcats/default.nix b/modules/home-manager/nixcats/default.nix index a12e0b3..54c7b06 100644 --- a/modules/home-manager/nixcats/default.nix +++ b/modules/home-manager/nixcats/default.nix @@ -2,9 +2,17 @@ config, lib, inputs, + pkgs, ... }: let utils = inputs.nixCats.utils; + + kulala-grammer = pkgs.tree-sitter.buildGrammar { + language = "kulala_http"; + version = "${pkgs.vimPlugins.kulala-nvim.version}"; + src = "${pkgs.vimPlugins.kulala-nvim}/lua/tree-sitter"; + generate = true; + }; in { imports = [ inputs.nixCats.homeModule @@ -79,6 +87,9 @@ in { gitlab = with pkgs; [ gitlab-ci-ls ]; + http = with pkgs; [ + kulala-fmt + ]; }; # This is for plugins that will load at startup without using packadd: @@ -88,6 +99,10 @@ in { # but as a demo, we do it anyway. lze lzextras + (nvim-treesitter.withPlugins ( + plugins: + nvim-treesitter.allGrammars ++ [kulala-grammer] + )) snacks-nvim gruvbox-nvim gruber-darker-nvim @@ -119,7 +134,6 @@ in { mini-nvim nvim-lspconfig blink-cmp - nvim-treesitter.withAllGrammars gitsigns-nvim harpoon2 which-key-nvim @@ -129,6 +143,9 @@ in { nvim-dap-ui nvim-dap-virtual-text ]; + http = with pkgs.vimPlugins; [ + kulala-nvim + ]; }; # shared libraries to be added to LD_LIBRARY_PATH @@ -198,6 +215,7 @@ in { c = true; csharp = true; gitlab = true; + http = true; }; # anything else to pass and grab in lua with `nixCats.extra` extra = { diff --git a/modules/home-manager/nixcats/init.lua b/modules/home-manager/nixcats/init.lua index eabb7c1..18327a1 100644 --- a/modules/home-manager/nixcats/init.lua +++ b/modules/home-manager/nixcats/init.lua @@ -583,6 +583,21 @@ require('lze').load { vim.keymap.set("n", "j", function() harpoon:list():next() end) end }, + { + "kulala.nvim", + keys = { + { "Rs", desc = "Send request" }, + { "Ra", desc = "Send all requests" }, + { "Rb", desc = "Open scratchpad" }, + }, + ft = {"http", "rest"}, + after = function () + require('kulala').setup({ + global_keymaps = true, + global_keymaps_prefix = "R", + }) + end + }, { "zk-nvim", enabled = nixCats('notes') or false, @@ -645,7 +660,7 @@ local function lsp_on_attach(_, bufnr) -- See `:help K` for why this keymap nmap('K', vim.lsp.buf.hover, 'Hover Documentation') - nmap('', vim.lsp.buf.signature_help, 'Signature Documentation') + -- nmap('', vim.lsp.buf.signature_help, 'Signature Documentation') -- Lesser used LSP functionality nmap('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration') diff --git a/modules/nixos/postgres.nix b/modules/nixos/postgres.nix index 7f36372..3b01612 100644 --- a/modules/nixos/postgres.nix +++ b/modules/nixos/postgres.nix @@ -1,16 +1,17 @@ {pkgs, ...}: { - services.postgresql = { - enable = true; - ensureDatabases = ["todo"]; - ensureUsers = [ - { - name = "todo"; - ensurePermissions = { - "DATABASE todo" = "ALL PRIVILEGES"; - }; - } - ]; - enableTCPIP = true; - port = 5432; + services = { + postgresql = { + enable = true; + authentication = '' + #type database DBuser auth-method + local all all trust + ''; + enableTCPIP = true; + port = 5432; + }; + # pgadmin = { + # enable = true; + # initialEmail = "admin@admin.com"; + # }; }; }