modules(neovim): create separate module
This commit is contained in:
parent
161eee6bb1
commit
5fbbfd7dc6
18
common/neovim/default.nix
Normal file
18
common/neovim/default.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.my.neovim;
|
||||
in {
|
||||
options.my.neovim = {
|
||||
enable = lib.mkEnableOption "neovim";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [nvim-custom];
|
||||
|
||||
environment.variables."EDITOR" = "nvim";
|
||||
};
|
||||
}
|
@ -56,6 +56,7 @@
|
||||
firewallInterface = "enp1s0";
|
||||
};
|
||||
|
||||
my.neovim.enable = true;
|
||||
my.services.keycloak.enable = true;
|
||||
my.services.mealie.enable = true;
|
||||
my.services.nextcloud.enable = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user