Modularized GUI for potentially new environments in the future

This commit is contained in:
Bryan Ramos 2024-01-28 10:07:49 -05:00
parent d725ffdbfa
commit 46682b9b42
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8
23 changed files with 77 additions and 39 deletions

View file

@ -0,0 +1,24 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.modules.neovim;
in
{ options.modules.neovim = { enable = mkEnableOption "neovim"; };
config = mkIf cfg.enable {
programs.neovim = {
enable = true;
vimAlias = true;
extraPackages = import ./config/servers.nix { inherit pkgs; };
};
home.file.".config/nvim" = {
source = ./config/lazyvim;
recursive = true;
};
home.packages = with pkgs; [
lazygit
];
};
}