mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add editor
This commit is contained in:
parent
3933f8881c
commit
2510113d2b
3 changed files with 14 additions and 5 deletions
|
@ -92,11 +92,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
};
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.enable = true;
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
./bluetooth
|
||||
./bootloader
|
||||
./display-manager
|
||||
./editor
|
||||
./filesystem
|
||||
./fonts
|
||||
./hardware
|
||||
|
|
13
modules/nixos/editor/default.nix
Normal file
13
modules/nixos/editor/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue