home-manager/programs/zed-editor: remove

Available now in upstream.
This commit is contained in:
Gabriel Arazas 2024-10-30 19:08:14 +08:00
parent 5fea0bfcba
commit fc4891179d
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 0 additions and 37 deletions

View File

@ -3,7 +3,6 @@
./files/mutable-files.nix
./programs/pipewire.nix
./programs/pop-launcher.nix
./programs/zed-editor.nix
./programs/borgmatic.nix
./services/archivebox.nix
./services/borgbackup.nix

View File

@ -1,36 +0,0 @@
{ config, lib, pkgs, ... }:
let
cfg = config.programs.zed-editor;
settingsFormat = pkgs.formats.json { };
in
{
options.programs.zed-editor = {
enable = lib.mkEnableOption "Zed, a text editor";
package = lib.mkPackageOption pkgs "zed-editor" { };
settings = lib.mkOption {
type = settingsFormat.type;
description = ''
Configuration settings to be put in {file}`$XDG_CONFIG_HOME/zed/settings.json`}.
'';
default = { };
example = {
"autosave" = "off";
"confirm_quit" = true;
};
};
};
config = lib.mkIf cfg.enable (lib.mkMerge [
{
home.packages = [ cfg.package ];
}
(lib.mkIf (cfg.settings != { }) {
xdg.configFile."zed/settings.json".source = settingsFormat.generate "zed-settings" cfg.settings;
})
]);
}