add zed-editor module
This commit is contained in:
parent
94d5d3fca1
commit
ba113d05c7
3 changed files with 33 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./zed.nix
|
||||
./rustypaste-cli.nix
|
||||
./atuin.nix
|
||||
./firefox.nix
|
||||
|
|
|
|||
31
home/modules/programs/zed.nix
Normal file
31
home/modules/programs/zed.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue