Skip to content

fix(nix): Fix incorrect Nix configurations#3843

Merged
yutkat merged 1 commit intomainfrom
v49.137
Apr 15, 2026
Merged

fix(nix): Fix incorrect Nix configurations#3843
yutkat merged 1 commit intomainfrom
v49.137

Conversation

@yutkat
Copy link
Copy Markdown
Owner

@yutkat yutkat commented Apr 15, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 15, 2026 05:23
@yutkat yutkat merged commit da838c7 into main Apr 15, 2026
6 of 10 checks passed
@yutkat yutkat deleted the v49.137 branch April 15, 2026 05:23
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a broken/incorrect standalone Home Manager host configuration and updates documentation/agent rules so users (and tools) invoke flake-based Home Manager configs correctly when environment-variable overrides are involved.

Changes:

  • Fix the X1C10 host to use a Home Manager–specific module and remove the invalid NixOS-only programs.nix-ld option.
  • Update user-facing instructions to use --impure when overriding NIX_USERNAME / NIX_DOTFILES_PATH.
  • Adjust agent/lint guidance and Codex rules; update Neovim plugin lockfile revisions.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
install.sh Updates “next steps” instructions for standalone Home Manager to include --impure when using env overrides.
home-manager/hosts/X1C10.nix Removes NixOS-only option from a standalone Home Manager host module (now effectively a no-op module with rationale).
flake.nix Corrects X1C10 host attributes to use hostSpecificHomeConfig; updates usage comments.
README.md Documents --impure requirement when overriding username/dotfiles path via environment variables.
AGENTS.md Updates local development commands (lint/apply) and host naming examples.
.config/nvim/lazy-lock.json Bumps pinned commits for several Neovim plugins.
.config/codex/rules/default.rules Allows additional command prefixes (notably nix eval / nix flake) for Codex runs.
.config/codex/AGENTS.md Tweaks response-style guidance for Codex agents (numbered lists preference, etc.).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread AGENTS.md
Comment on lines +18 to 21
- **Lint shell**: `git ls-files -z -- '*.sh' | xargs -0 shellcheck`.
- **Lint zsh**: `find .config/zsh/.zshrc .config/zsh/rc -maxdepth 1 -type f -print0 | xargs -0 shellcheck -f gcc`.
- **Lint Lua**: `git ls-files -z -- '*.lua' | xargs -0 selene -q`.
- **Format Nix**: `nixfmt --check $(git ls-files '*.nix')` (use RFC-style).
"mini.surround": { "branch": "main", "commit": "88c52297ed3e69ecf9f8652837888ecc727a28ee" },
"modicator.nvim": { "branch": "main", "commit": "7f867b4980946f115f4ccb922637d70d89a59cb4" },
"neoconf.nvim": { "branch": "main", "commit": "b5652592c3a79ebc9dc6336a769744b35788ea77" },
"neoconf.nvim": { "branch": "main", "commit": "ecdb0c9bc3f3373e11be4c97e461d16b52d532d0" },
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates documentation and configuration for Home Manager and Nix flakes, notably adding the --impure flag to commands using custom environment variables and refining linting procedures. It also updates Neovim plugin locks and corrects host configuration paths. Feedback was provided to improve the zsh linting command by using git ls-files for consistency and specifying a shell dialect for shellcheck to handle files without shebangs.

Comment thread AGENTS.md
- **Lint shell**: `find . -name "*.sh" -print0 | xargs -0 shellcheck`.
- **Lint Lua**: `selene -q .`.
- **Lint shell**: `git ls-files -z -- '*.sh' | xargs -0 shellcheck`.
- **Lint zsh**: `find .config/zsh/.zshrc .config/zsh/rc -maxdepth 1 -type f -print0 | xargs -0 shellcheck -f gcc`.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The shellcheck command for zsh files may not work as expected because shellcheck requires a shebang to detect the shell dialect, which .zshrc and other configuration snippets typically lack. Additionally, shellcheck does not natively support zsh syntax, so it is common practice to specify a supported dialect like -s bash to catch general logic errors. For consistency with the other linting commands in this file, consider using git ls-files instead of find.

Suggested change
- **Lint zsh**: `find .config/zsh/.zshrc .config/zsh/rc -maxdepth 1 -type f -print0 | xargs -0 shellcheck -f gcc`.
- **Lint zsh**: git ls-files -z -- '.config/zsh/.zshrc' '.config/zsh/rc/' | xargs -0 shellcheck -f gcc -s bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants