diff options
| author | Simen A. W. Olsen <hello@simenandre.no> | 2026-03-21 19:46:16 +0100 |
|---|---|---|
| committer | Simen A. W. Olsen <hello@simenandre.no> | 2026-03-21 19:46:16 +0100 |
| commit | 2341d688243b37d6cbb1ca8b07731d6c30dd40c9 (patch) | |
| tree | fa47a9cb411f05899923f2eccf44d0a02b6092e3 /modules/home | |
| parent | 96ad129e71b0a4143ca272e34a3a9cc776f711b4 (diff) | |
| download | dotfiles-2341d688243b37d6cbb1ca8b07731d6c30dd40c9.tar.gz dotfiles-2341d688243b37d6cbb1ca8b07731d6c30dd40c9.zip | |
refactor(home): switch claude-code to nix package
Diffstat (limited to 'modules/home')
| -rw-r--r-- | modules/home/default.nix | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/home/default.nix b/modules/home/default.nix index b9c80e5..905c6ea 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -21,17 +21,13 @@ stateVersion = "24.11"; }; + nixpkgs.config.allowUnfree = true; + home.packages = with pkgs; [ + claude-code nodejs_22 ]; # Let home-manager manage itself programs.home-manager.enable = true; - - # Install Claude Code via npm - home.activation.installClaudeCode = - lib.hm.dag.entryAfter [ "writeBoundary" ] '' - export PATH="${pkgs.nodejs_22}/bin:$PATH" - npm install -g @anthropic-ai/claude-code 2>/dev/null || true - ''; } |
