home/zed: use builtin option to configure theme
This commit is contained in:
@@ -178,16 +178,18 @@ in
|
|||||||
"toml"
|
"toml"
|
||||||
"typst"
|
"typst"
|
||||||
];
|
];
|
||||||
};
|
|
||||||
|
|
||||||
xdg.configFile."zed/themes/monokai.json".source = let
|
themes.monokai = let
|
||||||
package = pkgs.fetchFromGitHub {
|
package = pkgs.fetchFromGitHub {
|
||||||
owner = "billgo";
|
owner = "billgo";
|
||||||
repo = "monokai";
|
repo = "monokai";
|
||||||
rev = "061a86ff4845b11ac2f183c2e26c77b15cfae7d0";
|
rev = "061a86ff4845b11ac2f183c2e26c77b15cfae7d0";
|
||||||
hash = "sha256-mlEcgnLStYH1pV3p1iqNSvfVu4MpvpEOc+vxI+90MJs=";
|
hash = "sha256-mlEcgnLStYH1pV3p1iqNSvfVu4MpvpEOc+vxI+90MJs=";
|
||||||
};
|
};
|
||||||
in lib.mkIf cfg.enable "${package}/themes/monokai.json";
|
|
||||||
|
# TODO: fix upstream
|
||||||
|
in (builtins.readFile "${package}/themes/monokai.json");
|
||||||
|
};
|
||||||
|
|
||||||
programs.zsh.initContent = lib.mkIf cfg.enable ''
|
programs.zsh.initContent = lib.mkIf cfg.enable ''
|
||||||
if [[ "$ZED_TERM" == "true" && -n "$TMUX_PANE" ]]; then
|
if [[ "$ZED_TERM" == "true" && -n "$TMUX_PANE" ]]; then
|
||||||
|
Reference in New Issue
Block a user