Skip to content

Commit 1ab0c47

Browse files
stackptrclaude
andcommitted
feat(home): add zed-nova-theme as flake input
Source the Nova theme for Zed from the zed-nova-theme flake input instead of fetchFromGitHub, so it updates automatically with `nix flake update`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9093520 commit 1ab0c47

5 files changed

Lines changed: 36 additions & 2 deletions

File tree

‎.claude/settings.local.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(git commit:*)",
5+
"Bash(nix-prefetch-github stackptr zed-nova-theme --rev main)",
6+
"Bash(nix hash to-sri --type sha256 0ixh7s7wf334smpkb9nzw3gc9mbr4lq77ahnc6s7jv3cc1dj8rc1)"
7+
]
8+
}
9+
}

‎flake.lock‎

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎flake.nix‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
url = "github:stackptr/llm-profile";
7070
flake = false;
7171
};
72+
zed-nova-theme = {
73+
url = "github:stackptr/zed-nova-theme";
74+
flake = false;
75+
};
7276
};
7377

7478
outputs = inputs @ {flake-parts, ...}:

‎home/programs/zed.nix‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
{pkgs, ...}: {
1+
{zed-nova-theme, ...}: {
22
programs.zed-editor = {
33
enable = true;
44
mutableUserSettings = false;
5+
themes = {
6+
nova = builtins.fromJSON (builtins.readFile "${zed-nova-theme}/theme.json");
7+
};
58
userSettings = {
69
auto_update = false;
710
theme = {

‎lib/hosts.nix‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ inputs @ {
1010
homebrew-cask,
1111
llm-profile,
1212
nix-index-database,
13+
zed-nova-theme,
1314
zx-dev,
1415
disko,
1516
golink,
@@ -45,7 +46,7 @@ inputs @ {
4546
++ nixpkgs.lib.optionals (hostHomeConfig != null) [hostHomeConfig];
4647
};
4748
home-manager.extraSpecialArgs = {
48-
inherit hostname lightweight llm-profile pkgs-stable showBatteryStatus;
49+
inherit hostname lightweight llm-profile pkgs-stable showBatteryStatus zed-nova-theme;
4950
};
5051
};
5152

0 commit comments

Comments
 (0)