diff --git a/modules/dev/default.nix b/modules/dev/default.nix new file mode 100644 index 00000000..36045662 --- /dev/null +++ b/modules/dev/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./nvim + ]; +} diff --git a/modules/dev/editors/nvim/default.nix b/modules/dev/editors/nvim/default.nix new file mode 100644 index 00000000..4bbbc753 --- /dev/null +++ b/modules/dev/editors/nvim/default.nix @@ -0,0 +1,21 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.dev.editors.nvim; +in +{ + options.modules.dev.editors.nvim = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + # because yes + environment.systemPackages = with pkgs; [ + neovim + ]; + home-manager.users.sako.xdg.configFile.nvim = { + source = ../../../../config/nvim; + recursive = true; + }; + }; +}