add zed-editor module

This commit is contained in:
ulic-youthlic 2025-02-14 22:57:48 +08:00
parent 94d5d3fca1
commit ba113d05c7
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
3 changed files with 33 additions and 0 deletions

View file

@ -1,6 +1,7 @@
{ ... }:
{
imports = [
./zed.nix
./rustypaste-cli.nix
./atuin.nix
./firefox.nix

View file

@ -0,0 +1,31 @@
{
pkgs,
config,
lib,
...
}:
let
cfg = config.youthlic.programs.zed-editor;
in
{
options = {
youthlic.programs.zed-editor = {
enable = lib.mkEnableOption "zed-editor";
};
};
config = lib.mkIf cfg.enable {
programs.zed-editor = {
enable = true;
extensions = [
"nix"
];
extraPackages = with pkgs; [
nixd
nil
];
userSettings = {
vim_mode = true;
};
};
};
}