File tree 4 files changed +58
-1
lines changed
4 files changed +58
-1
lines changed Original file line number Diff line number Diff line change 47
47
./thunderbird.nix
48
48
./tmux.nix
49
49
./tofi.nix
50
+ ./vscode.nix
50
51
./waybar.nix
51
52
./wlogout.nix
52
53
./yazi.nix
Original file line number Diff line number Diff line change
1
+ { catppuccinLib } :
2
+ { config , lib , ... } :
3
+
4
+ let
5
+ inherit ( config . catppuccin ) sources ;
6
+ cfg = config . catppuccin . vscode ;
7
+
8
+ usesPerProfileCfg = lib . versionAtLeast catppuccinLib . getModuleRelease "25.05" ;
9
+ settings = {
10
+ extensions = [ sources . vscode ] ;
11
+
12
+ userSettings = {
13
+ "workbench.colorTheme" = "Catppuccin " + catppuccinLib . mkUpper cfg . flavor ;
14
+ "catppuccin.accentColor" = cfg . accent ;
15
+
16
+ # Recommended settings
17
+ # https://github.com/catppuccin/vscode?tab=readme-ov-file#vscode-settings
18
+ "editor.semanticHighlighting.enabled" = lib . mkDefault true ;
19
+ "terminal.integrated.minimumContrastRatio" = lib . mkDefault 1 ;
20
+ "window.titleBarStyle" = lib . mkDefault "custom" ;
21
+ } ;
22
+ } ;
23
+ in
24
+
25
+ {
26
+ options . catppuccin . vscode = catppuccinLib . mkCatppuccinOption {
27
+ name = "vscode" ;
28
+ accentSupport = true ;
29
+ } ;
30
+
31
+ config = lib . mkIf cfg . enable {
32
+ # TODO: Remove compat layer when 25.05 is stable
33
+ # https://github.com/nix-community/home-manager/pull/5640
34
+ programs . vscode =
35
+ if usesPerProfileCfg then
36
+ {
37
+ profiles . default = settings ;
38
+ }
39
+ else
40
+ settings ;
41
+ } ;
42
+ }
Original file line number Diff line number Diff line change 1
- { lib , ... } :
1
+ { lib , pkgs , ... } :
2
2
3
3
{
4
4
imports = [
65
65
enable = true ;
66
66
profiles . catppuccin-mocha-mauve . isDefault = true ;
67
67
} ;
68
+ vscode = {
69
+ enable = true ;
70
+ package = pkgs . vscodium ;
71
+ } ;
68
72
waybar . enable = true ;
69
73
wlogout . enable = true ;
70
74
yazi . enable = true ;
Original file line number Diff line number Diff line change
1
+ { vscode-utils , ... } :
2
+
3
+ vscode-utils . buildVscodeMarketplaceExtension {
4
+ mktplcRef = {
5
+ name = "catppuccin-vsc" ;
6
+ publisher = "catppuccin" ;
7
+ version = "3.16.1" ;
8
+ hash = "sha256-qEwQ583DW17dlJbODN8SNUMbDMCR1gUH4REaFkQT65I=" ;
9
+ } ;
10
+ }
You can’t perform that action at this time.
0 commit comments