home/zed: init

This commit is contained in:
Oystein Kristoffer Tveit 2024-08-12 17:37:18 +02:00
parent c8678105c6
commit a265b9db44
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
2 changed files with 35 additions and 0 deletions

View File

@ -43,6 +43,7 @@ in {
# ./programs/xmobar # ./programs/xmobar
./programs/xmonad ./programs/xmonad
./programs/zathura.nix ./programs/zathura.nix
./programs/zed
./services/copyq.nix ./services/copyq.nix
./services/dunst.nix ./services/dunst.nix

View File

@ -0,0 +1,34 @@
{ config, pkgs, lib, ... }:
{
home.packages = with pkgs; [ zed-editor ];
xdg.configFile."zed/settings.json".source = let
format = pkgs.formats.json { };
in format.generate "zed-settings.json" {
autosave = "off";
buffer_font_family = "Fira Code";
load_direnv = "shell_hook";
format_on_save = "off";
telemetry = {
diagnostics = false;
metrics = false;
};
vim_mode = true;
theme = {
mod = "dark";
dark = "monokai Classic";
};
};
xdg.configFile."zed/themes/monokai.json".source = let
package = pkgs.fetchFromGitHub {
owner = "billgo";
repo = "monokai";
rev = "061a86ff4845b11ac2f183c2e26c77b15cfae7d0";
hash = "sha256-mlEcgnLStYH1pV3p1iqNSvfVu4MpvpEOc+vxI+90MJs=";
};
in "${package}/themes/monokai.json";
}