|
1 | 1 | { config, pkgs, ... }: { |
2 | | - # Create writable settings.json using out-of-store symlink |
3 | | - home.file.".claude/settings.json".source = config.lib.file.mkOutOfStoreSymlink |
4 | | - "${config.home.homeDirectory}/.config/nix/common/claude-code/settings.json"; |
5 | | - home.file.".claude/output-styles".source = ./output-styles; |
| 2 | + home.file = { |
| 3 | + # Create writable settings.json using out-of-store symlink |
| 4 | + ".claude/settings.json".source = config.lib.file.mkOutOfStoreSymlink |
| 5 | + "${config.home.homeDirectory}/.config/nix/common/claude-code/settings.json"; |
6 | 6 |
|
7 | | - # Combine local commands with linear commands |
8 | | - home.file.".claude/commands".source = pkgs.symlinkJoin { |
9 | | - name = "claude-commands"; |
10 | | - paths = [ |
11 | | - ./commands |
12 | | - (pkgs.runCommand "linear-commands" { } '' |
13 | | - mkdir -p $out/linear |
14 | | - cp -r ${ |
15 | | - pkgs.fetchFromGitHub { |
16 | | - owner = "svnlto"; |
17 | | - repo = "claude-code-linear-commands"; |
18 | | - rev = "main"; |
19 | | - sha256 = "07zl1yfb1pvkyk0kqhdw7z5dpi8078jdybnm0gzwjb13hxk17s21"; |
20 | | - } |
21 | | - }/commands/* $out/linear/ |
22 | | - '') |
23 | | - ]; |
24 | | - }; |
| 7 | + ".claude/output-styles".source = ./output-styles; |
| 8 | + |
| 9 | + # Combine local commands with linear commands |
| 10 | + ".claude/commands".source = pkgs.symlinkJoin { |
| 11 | + name = "claude-commands"; |
| 12 | + paths = [ |
| 13 | + ./commands |
| 14 | + (pkgs.runCommand "linear-commands" { } '' |
| 15 | + mkdir -p $out/linear |
| 16 | + cp -r ${ |
| 17 | + pkgs.fetchFromGitHub { |
| 18 | + owner = "svnlto"; |
| 19 | + repo = "claude-code-linear-commands"; |
| 20 | + rev = "main"; |
| 21 | + sha256 = "07zl1yfb1pvkyk0kqhdw7z5dpi8078jdybnm0gzwjb13hxk17s21"; |
| 22 | + } |
| 23 | + }/commands/* $out/linear/ |
| 24 | + '') |
| 25 | + ]; |
| 26 | + }; |
25 | 27 |
|
26 | | - # Create necessary directories |
27 | | - home.file.".claude/.keep".text = ""; |
| 28 | + # Create necessary directories |
| 29 | + ".claude/.keep".text = ""; |
| 30 | + }; |
28 | 31 | } |
0 commit comments