From f7d8e728ffdc7bb88f4833993dfdfdf0e97dc09b Mon Sep 17 00:00:00 2001 From: Martin Pander Date: Fri, 13 Feb 2026 21:25:03 +0100 Subject: [PATCH] Add opencode.nvim --- TODO.md | 51 ------------------------------------------- modules/home/nvim.nix | 1 + modules/home/sh.nix | 1 + 3 files changed, 2 insertions(+), 51 deletions(-) diff --git a/TODO.md b/TODO.md index 673a6f2..9e5cc10 100644 --- a/TODO.md +++ b/TODO.md @@ -33,11 +33,9 @@ This file tracks remaining tasks and known issues for the NixOS configuration. - [ ] Consider adding additional shell aliases - [ ] Review if any macOS-specific tools need Linux alternatives -- [ ] Consider adding dircolors configuration ### Documentation -- [ ] Add screenshots of tmux setup - [ ] Document custom Neovim configuration (lua files) - [ ] Create troubleshooting guide for common issues @@ -51,69 +49,20 @@ This file tracks remaining tasks and known issues for the NixOS configuration. These were not in the original Home Manager config but might be useful on NixOS: -- [ ] Desktop environment / Window manager -- [ ] Display manager (GDM, SDDM, LightDM) -- [ ] Sound configuration (PipeWire/PulseAudio) -- [ ] Printing support -- [ ] Bluetooth support - [ ] Docker / Podman -- [ ] Virtualization (QEMU/KVM) ## Known Issues -### Nvim Configuration Files - -The nvim configuration references lua files from the parent directory: -```nix -initLua = builtins.concatStringsSep "\n" [ - (lib.strings.fileContents ../../../nvim/base.lua) - (lib.strings.fileContents ../../../nvim/keymaps.lua) - (lib.strings.fileContents ../../../nvim/plugins.lua) - (lib.strings.fileContents ../../../nvim/filetype.lua) -]; -``` - -**Status**: Should work if nvim/ directory exists at `/home/pan/dev/config/dot/nvim/` - -**Action**: Verify these files exist or adjust paths - -### Profile Loading - -The shell configuration is now configurable via `dot.sh.sourceProfile`: -```nix -profileExtra = lib.mkIf cfg.sourceProfile '' - source $HOME/.profile -''; -``` - -**Status**: Disabled by default. Only enabled for work host. - -**Action**: Verify `~/.profile` exists on hosts where `dot.sh.sourceProfile = true` is set. - ## Testing Checklist Before considering this configuration complete: -- [ ] System boots successfully -- [ ] User can login as `pan` -- [ ] Zsh loads with Prezto -- [ ] Tmux starts without errors -- [ ] Neovim opens and plugins load - [ ] LSP servers work in Neovim -- [ ] Git commands work with correct identity -- [ ] Lazygit opens and works -- [ ] Jujutsu commands work -- [ ] Taskwarrior shows tasks -- [ ] Direnv loads `.envrc` files -- [ ] fzf keybindings work (Ctrl+R) -- [ ] zoxide navigation works -- [ ] All shell aliases work ## Future Enhancements - [ ] Add backup/restore scripts - [ ] Create CI/CD for testing configuration -- [ ] Add secrets management (agenix or sops-nix) - [ ] Consider using flake-parts for better organization - [ ] Add system monitoring tools - [ ] Configure automatic updates diff --git a/modules/home/nvim.nix b/modules/home/nvim.nix index 4479a05..985a821 100644 --- a/modules/home/nvim.nix +++ b/modules/home/nvim.nix @@ -59,6 +59,7 @@ in copilot-lua copilot-cmp CopilotChat-nvim + opencode-nvim bullets-vim nvim-dap nvim-nio diff --git a/modules/home/sh.nix b/modules/home/sh.nix index 82ce0df..cfcb729 100644 --- a/modules/home/sh.nix +++ b/modules/home/sh.nix @@ -96,6 +96,7 @@ in ripgrep-all viddy duf + lsof ]; home.sessionVariables = {