From 1fd92fcaf3aadea1e9509f859340f57100218c41 Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Sat, 21 Mar 2026 13:49:10 +0100 Subject: refactor: consolidate dotfiles into declarative Nix modules - Remove nvim git submodule, use flake input instead - Inline all shell configurations into Nix modules - Remove legacy bootstrap.sh and macos/macos script - Add NixOS system configuration support - Update documentation with platform-specific setup - Add claude-code to macOS Homebrew - Remove stow-based dotfile management approach --- modules/home/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'modules/home/default.nix') diff --git a/modules/home/default.nix b/modules/home/default.nix index bf1900d..1ff1c19 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: { imports = [ @@ -16,9 +16,17 @@ stateVersion = "24.11"; }; + home.packages = with pkgs; [ + nodejs_22 + ]; + # Let home-manager manage itself programs.home-manager.enable = true; - # Link neovim config (managed as a git submodule) - home.file.".config/nvim".source = ../../nvim/.config/nvim; + # Install Claude Code via npm on Linux (on macOS it's managed by Homebrew) + home.activation.installClaudeCode = lib.mkIf (!pkgs.stdenv.isDarwin) + (lib.hm.dag.entryAfter [ "writeBoundary" ] '' + export PATH="${pkgs.nodejs_22}/bin:$PATH" + npm install -g @anthropic-ai/claude-code 2>/dev/null || true + ''); } -- cgit v1.2.3