From 53fee384c776073dc89dce012ff94c142d1785c6 Mon Sep 17 00:00:00 2001 From: Yan Lin Date: Sat, 8 Nov 2025 15:34:16 +0100 Subject: [PATCH] add repo-specific claude memory --- CLAUDE.md | 8 ++++++++ modules/claude-code.nix | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..fa9c20b --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,8 @@ +## Coding Style +- Never write shebang unless specifically requested + +## NixOS +- This is my nixOS configuration for all my personal computers, and you are running on one of the nixOS hosts +- Check existing nix config when interacting with runtime environments +- Per spirit of nixOS reproducibility, try to analysis problems purely based on my nixOS configuration system first, since it should be representative of the actual runtime environment of the host machine; especially avoid interacting with temporarily runtime environments, like searching in nix store or using `nix-env`. +- Use `oss` alias for nixos-rebuild switch and `hms` alias for home-manager switch diff --git a/modules/claude-code.nix b/modules/claude-code.nix index 32b3705..e47d3b3 100644 --- a/modules/claude-code.nix +++ b/modules/claude-code.nix @@ -170,14 +170,6 @@ let # Default global memory content defaultGlobalMemory = '' - # Global Claude Code Instructions - - Never write shebang unless specifically requested - - ## NixOS - - I use nixOS for all my computers (global config in ~/.config/nix) and nix-shell for project-specific runtime management - - Check existing nix config when interacting with runtime environments - - Use `oss` alias for nixos-rebuild switch (cross-platform, works on both NixOS and nix-darwin) - - Use `hms` alias for home-manager switch ''; # Global memory configuration