add editor

This commit is contained in:
Aditya 2024-04-11 10:22:48 +05:30
parent 3933f8881c
commit 2510113d2b
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
3 changed files with 14 additions and 5 deletions

View file

@ -92,11 +92,6 @@
};
};
programs.neovim = {
enable = true;
defaultEditor = true;
};
# Enable the OpenSSH daemon.
services.openssh.enable = true;

View file

@ -3,6 +3,7 @@
./bluetooth
./bootloader
./display-manager
./editor
./filesystem
./fonts
./hardware

View file

@ -0,0 +1,13 @@
{
config,
lib,
...
}: {
options = {editor.enable = lib.mkEnableOption "enable editor";};
config = lib.mkIf config.editor.enable {
programs.neovim = {
enable = true;
defaultEditor = true;
};
};
}