Repository navigation
Go path rename #683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go path rename #683
Changes from 2 commits
601efcc
7250c38
9189fb9
a96b89d
0dd8c4b
318584a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { config, ... }: | ||
| { | ||
| xdg.configFile."amp/settings.json" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./settings.json; | ||
| source = ./settings.json; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { config, ... }: | ||
| { | ||
| home.file.".codex/config.toml" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./config.toml; | ||
| source = ./config.toml; | ||
| force = true; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { config, ... }: | ||
| { | ||
| home.file.".config/crush/crush.json" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./crush.json; | ||
| source = ./crush.json; | ||
| force = true; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { config, ... }: | ||
| { | ||
| home.file.".config/direnv/direnvrc" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./direnvrc; | ||
| source = ./direnvrc; | ||
| force = true; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { config, ... }: | ||
| { | ||
| home.file.".factory/config.json" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./config.json; | ||
| source = ./config.json; | ||
| force = true; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { config, ... }: | ||
| { | ||
| xdg.configFile."ghostty/config" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./config; | ||
| source = ./config; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { config, ... }: | ||
| { | ||
| home.file.".hammerspoon/init.lua" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./init.lua; | ||
| source = ./init.lua; | ||
| force = true; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { config, ... }: | ||
| { | ||
| xdg.configFile."jj/config.toml" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./config.toml; | ||
| source = ./config.toml; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { config, ... }: | ||
| { | ||
| home.file.".config/opencode/opencode.jsonc" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./opencode.jsonc; | ||
| source = ./opencode.jsonc; | ||
| force = true; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,15 @@ | ||
| { config, ... }: | ||
| { | ||
| home.file.".pi/agent/models.json" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./models.json; | ||
| source = ./models.json; | ||
| force = true; | ||
| }; | ||
| home.file.".pi/agent/settings.json" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./settings.json; | ||
| source = ./settings.json; | ||
| force = true; | ||
| }; | ||
| home.file.".pi/agent/keybindings.json" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./keybindings.json; | ||
| source = ./keybindings.json; | ||
| force = true; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { config, ... }: | ||
| { | ||
| home.file.".serena/serena_config.yml" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./serena_config.yml; | ||
| source = ./serena_config.yml; | ||
| force = true; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| { config, ... }: | ||
| { | ||
| home.file.".config/starship.toml" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./starship.toml; | ||
| source = ./starship.toml; | ||
| force = true; | ||
| }; | ||
|
Comment on lines
3
to
6
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| { config, ... }: | ||
| { | ||
| xdg.configFile."zellij/config.kdl" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./config.kdl; | ||
| source = ./config.kdl; | ||
| }; | ||
| xdg.configFile."zellij/layouts/primary.kdl" = { | ||
| source = config.lib.file.mkOutOfStoreSymlink ./layouts/primary.kdl; | ||
| source = ./layouts/primary.kdl; | ||
| }; | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -153,7 +153,7 @@ | |||||||||||
|
|
||||||||||||
| xdg.configFile = { | ||||||||||||
| "fish/themes/dracula.theme".source = ./dracula.theme; | ||||||||||||
| "fish/completions".source = config.lib.file.mkOutOfStoreSymlink ./completions; | ||||||||||||
| "fish/completions".source = ./completions; | ||||||||||||
|
||||||||||||
| "fish/completions".source = ./completions; | |
| "fish/completions" = { | |
| source = ./completions; | |
| recursive = true; | |
| }; |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,11 +6,19 @@ | |||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||
| ids.gids.nixbld = 350; | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| # Set SHELL environment variable for GUI applications | ||||||||||||||||||||||||||||||
| # Set environment variables for GUI applications (VS Code, etc.) | ||||||||||||||||||||||||||||||
| launchd.user.envVariables = { | ||||||||||||||||||||||||||||||
| SHELL = "${pkgs.bash}/bin/bash"; | ||||||||||||||||||||||||||||||
| GOROOT = "/etc/go-root"; | ||||||||||||||||||||||||||||||
| GOPATH = "/Users/${username}/go"; | ||||||||||||||||||||||||||||||
| PATH = "/Users/${username}/go/bin:/etc/profiles/per-user/${username}/bin:/run/current-system/sw/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"; | ||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hardcoding the I suggest making the |
||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||
|
Comment on lines
+12
to
15
|
||||||||||||||||||||||||||||||
| # Set environment variables for GUI applications (VS Code, etc.) | |
| launchd.user.envVariables = { | |
| SHELL = "${pkgs.bash}/bin/bash"; | |
| GOROOT = "/etc/go-root"; | |
| GOPATH = "/Users/${username}/go"; | |
| PATH = "/Users/${username}/go/bin:/etc/profiles/per-user/${username}/bin:/run/current-system/sw/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"; | |
| }; | |
| # Set environment variables for GUI applications (VS Code, etc.) | |
| launchd.user.envVariables = { | |
| SHELL = "${pkgs.bash}/bin/bash"; | |
| GOROOT = "/etc/go-root"; | |
| GOPATH = "/Users/${username}/go"; | |
| PATH = "/Users/${username}/go/bin:/etc/profiles/per-user/${username}/bin:/run/current-system/sw/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"; | |
| }; |
🤖 Prompt for AI Agents
In `@nix-darwin/config/system.nix` around lines 9 - 15,
launchd.user.envVariables.PATH is missing Homebrew locations so GUI apps get a
different PATH; update the PATH value in launchd.user.envVariables to include
/opt/homebrew/bin and /opt/homebrew/sbin (preferably prepended or included
alongside the existing entries) while keeping the existing per-user
/Users/${username}/go and /etc/per-user entries and the ${username} expansion
intact so GUI apps like VS Code see the same Homebrew tools as your shell.
Copilot
AI
Jan 28, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
documentation.enable = false; globally disables documentation generation/installation for this nix-darwin system, which can remove manpages/docs for interactive use. If the intent is only to silence a docs-generation warning in CI, consider gating this on the relevant build context (e.g., runner/CI) or addressing the underlying warning instead of disabling docs unconditionally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says this is an "Example config", but the source is
./config.template.yamland there is no separate example file in this directory. Either update the comment to reflect that this is intentionally the template, or add a realconfig.example.yamland source that instead.