-
Notifications
You must be signed in to change notification settings - Fork 2
Feat/file based config migration #341
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c3e1857
feat: convert git module from programs.git to file-based config
himkt 54e5561
feat: convert tmux module from programs.tmux to file-based config
himkt c96c1a9
feat: convert mise module from programs.mise to file-based config
himkt a4e6130
feat: convert zsh module from programs.zsh to file-based config
himkt deb8e46
feat: convert nvim module from programs.neovim to file-based config
himkt 6bcd2dd
refactor: move tmux package from home.packages to mise
himkt 6497fdb
fix: add mise shims to sessionPath for non-interactive shells
himkt d771dc9
refactor: remove hm-session-vars dependency, inline mise shims and ED…
himkt 1a46848
refactor: move uv and neovim from home.packages to mise, update mise …
himkt d2d7e86
fix: move mise shims PATH before tmux auto-attach, use conditional pb…
himkt 0d5e3c1
feat: add bazel=bazelisk alias in zshrc
himkt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,43 +1,10 @@ | ||
| { | ||
| pkgs, | ||
| inputs, | ||
| ... | ||
| }: | ||
|
|
||
| { pkgs, inputs, ... }: | ||
| let | ||
| unstable = import inputs.nixpkgs-unstable { | ||
| system = pkgs.stdenv.hostPlatform.system; | ||
| }; | ||
| in | ||
|
|
||
| { | ||
| programs.mise = { | ||
| enable = true; | ||
| package = unstable.mise; | ||
| enableZshIntegration = true; | ||
|
|
||
| globalConfig = { | ||
| tools = { | ||
| "aqua:ahmetb/kubectx" = "latest"; | ||
| "aqua:anthropics/claude-code" = "latest"; | ||
| # FIXME(himkt): btop does not release binaries for macOS | ||
| # "aqua:aristocratos/btop" = "latest"; | ||
| "aqua:bazelbuild/bazelisk" = "latest"; | ||
| "aqua:cli/cli" = "latest"; | ||
| "aqua:derailed/k9s" = "latest"; | ||
| "aqua:jqlang/jq" = "latest"; | ||
| "aqua:kubernetes-sigs/kustomize" = "latest"; | ||
| "aqua:kubernetes/kubernetes/kubectl" = "latest"; | ||
| "aqua:openai/codex" = "latest"; | ||
| "asdf:mise-plugins/mise-gcloud" = "latest"; | ||
| "core:java" = "latest"; | ||
| "core:node" = "latest"; | ||
| }; | ||
| settings = { | ||
| all_compile = false; | ||
| experimental = true; | ||
| # disable_backends = [ "asdf" ]; | ||
| }; | ||
| }; | ||
| }; | ||
| home.packages = [ unstable.mise ]; | ||
|
himkt marked this conversation as resolved.
|
||
| xdg.configFile."mise/config.toml" = { source = ./files/config.toml; }; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| [tools] | ||
| "aqua:ahmetb/kubectx" = "latest" | ||
| "aqua:ajeetdsouza/zoxide" = "latest" | ||
| "aqua:anthropics/claude-code" = "latest" | ||
| "aqua:astral-sh/uv" = "latest" | ||
| # FIXME(himkt): btop does not release binaries for macOS | ||
| # "aqua:aristocratos/btop" = "latest" | ||
| "aqua:bazelbuild/bazelisk" = "latest" | ||
| "aqua:cli/cli" = "latest" | ||
| "aqua:derailed/k9s" = "latest" | ||
| "aqua:jqlang/jq" = "latest" | ||
| "aqua:junegunn/fzf" = "latest" | ||
| "aqua:kubernetes-sigs/kustomize" = "latest" | ||
| "aqua:kubernetes/kubernetes/kubectl" = "latest" | ||
| "aqua:neovim/neovim" = "latest" | ||
| "aqua:openai/codex" = "latest" | ||
| "aqua:tmux/tmux-builds" = "latest" | ||
| "asdf:mise-plugins/mise-gcloud" = "latest" | ||
| "core:java" = "latest" | ||
| "core:node" = "latest" | ||
|
|
||
| [settings] | ||
| all_compile = false | ||
| experimental = true | ||
| idiomatic_version_file_enable_tools = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,6 @@ | ||
| { ... }: | ||
| { | ||
|
himkt marked this conversation as resolved.
|
||
| config, | ||
| pkgs, | ||
| lib, | ||
| ... | ||
| }: | ||
|
|
||
| { | ||
| programs.tmux = { | ||
| enable = true; | ||
| extraConfig = builtins.readFile ./files/tmux.conf; | ||
| xdg.configFile."tmux/tmux.conf" = { | ||
| source = ./files/tmux.conf; | ||
| }; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,6 @@ | ||
| { ... }: | ||
| { | ||
| config, | ||
| pkgs, | ||
| lib, | ||
| ... | ||
| }: | ||
|
|
||
| { | ||
| programs.zsh = { | ||
| enable = true; | ||
| initContent = builtins.readFile ./files/zshrc; | ||
| home.file.".zshrc" = { | ||
| source = ./files/zshrc; | ||
|
Comment on lines
+3
to
+4
|
||
| }; | ||
|
|
||
| # Additional packages needed by zshrc | ||
| home.packages = with pkgs; [ | ||
| fzf | ||
| zoxide | ||
| ]; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.