mirror of
https://github.com/materusPL/nixos-config
synced 2026-06-24 17:36:41 +00:00
common: restructure config, update tmux and wezterm
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [ ./nvim.nix ];
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.mkk.neovim = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
};
|
||||
config =
|
||||
# Home Manager
|
||||
lib.mkIf config.mkk.neovim.enable {
|
||||
xdg.configFile."nvim/lua/materus".source = "${config.mkk.dir}/config/editor/neovim/lua/materus";
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
withRuby = true;
|
||||
withPython3 = true;
|
||||
plugins = [
|
||||
pkgs.vimPlugins.nvim-treesitter.withAllGrammars
|
||||
];
|
||||
|
||||
initLua = lib.mkAfter ''
|
||||
MATERUS = {
|
||||
NIXOS = 1
|
||||
}
|
||||
require("materus")
|
||||
'';
|
||||
};
|
||||
home.packages = [
|
||||
pkgs.fd
|
||||
pkgs.ripgrep
|
||||
pkgs.tree-sitter
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user