mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
home-manager/programs/zed-editor: remove
Available now in upstream.
This commit is contained in:
parent
5fea0bfcba
commit
fc4891179d
@ -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
|
||||
|
@ -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;
|
||||
})
|
||||
]);
|
||||
}
|
Loading…
Reference in New Issue
Block a user