{"id":22071758,"url":"https://github.com/mhutter/nix","last_synced_at":"2025-07-24T10:33:16.135Z","repository":{"id":154904184,"uuid":"629076197","full_name":"mhutter/nix","owner":"mhutter","description":"home-manager configurations","archived":false,"fork":false,"pushed_at":"2024-11-22T08:17:19.000Z","size":4484,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-27T07:12:41.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mhutter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-17T15:09:34.000Z","updated_at":"2024-11-22T08:17:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"af29cc07-5ee8-421b-8b8f-e9986d57d5e2","html_url":"https://github.com/mhutter/nix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fnix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fnix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fnix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mhutter%2Fnix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mhutter","download_url":"https://codeload.github.com/mhutter/nix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227428227,"owners_count":17775875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T20:33:50.957Z","updated_at":"2025-07-24T10:33:16.119Z","avatar_url":"https://github.com/mhutter.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nix Configurations\n\nConfig files for both NixOS and Home-Manager.\n\n## Usage\n\nCreate `~/.config/nix/nix.conf` with the following content:\n\n```\naccess-tokens = github.com=github_pat_XXX\n```\n\n## TODO\n\n- [ ] Migrate to agenix\n- [x] Clean up the repository after adding NixOS configurations\n- [x] Activation Script for nixOS\n- [x] Ensure `/etc/nixos` is a symlink here, so we can use `nixos-rebuild` withouth having to specify the path\n- [x] Same for `~/.config/home-manager`\n- [x] `ssh-agent` on NixOS\n- [ ] Desktop environment no nxzt\n\n## DONE\n\n### Make auto-completions work out of the box\n\n\u003cdetails\u003e\n\u003csummary\u003e\nIt did work out of the box; the reason it did NOT work was because ZSH was smart enough to recognize that `kubectl` was linked to `kubecolor`, and tried ITS completions (which do not exist).\n\nSolution:\n\n    compdef kubecolor=kubectl\n\n\u003c/summary\u003e\n\nCurrently, completions from \"unmanaged\" packages do not work out of the box.\n\nThe `kubectl` package for example contains `share/zsh/site-functions/_kubectl`, but this is not linked or added to `$fpath`.\n\n[Setting up zsh completions for tools installed via home-manager](https://knezevic.ch/posts/zsh-completion-for-tools-installed-via-home-manager/) describes how to locate \u0026 copy all completion files in a separate folder, but I was not yet able to work out how this works using Home Manager.\n\n[The documentation](https://nix-community.github.io/home-manager/options.html#opt-programs.zsh.enableCompletion) says to add `environment.pathsToLink = [ \"/share/zsh\" ];` to \"your system configuration\", but since I don't use NixOS, how can I achieve this?\n\n`fd`ing through `/nix`, I found out that the `_kubectl` (and other) file is indeed copied into the current `home-manager-path` module (`/nix/store/wrnxc15nj5snc6cjq5rl49d332b1hl61-home-manager-path/share`), which is linked as `~/.nix-profile/share`, which in turn is in `$fpath` (but it still doesn't work)\n\n\u003c/details\u003e\n\n## Further reading\n\n- https://github.com/maxbrunet/dotfiles\n- https://github.com/sherubthakur/dotfiles\n- https://github.com/LorenzBischof/dotfiles\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhutter%2Fnix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmhutter%2Fnix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmhutter%2Fnix/lists"}