aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorSimen A. W. Olsen <hello@simenandre.no>2026-03-21 19:46:16 +0100
committerSimen A. W. Olsen <hello@simenandre.no>2026-03-21 19:46:16 +0100
commit2341d688243b37d6cbb1ca8b07731d6c30dd40c9 (patch)
treefa47a9cb411f05899923f2eccf44d0a02b6092e3 /modules
parent96ad129e71b0a4143ca272e34a3a9cc776f711b4 (diff)
downloaddotfiles-2341d688243b37d6cbb1ca8b07731d6c30dd40c9.tar.gz
dotfiles-2341d688243b37d6cbb1ca8b07731d6c30dd40c9.zip
refactor(home): switch claude-code to nix package
Diffstat (limited to 'modules')
-rw-r--r--modules/home/default.nix10
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
- '';
}