Neovim init config. Formatting. Updates.

This commit is contained in:
2026-03-20 08:35:04 +01:00
parent bd10321f19
commit 576b955023
12 changed files with 137 additions and 35 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
xdg.enable = true;
xdg.configFile."zsh/cfg".source =
config.lib.file.mkOutOfStoreSymlink "/mkk/config/config/shell/zsh";
"${config.mkk.dir}/config/shell/zsh";
xdg.configFile."zsh/data/plugins/powerlevel10k".source =
"${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k";
xdg.configFile."zsh/data/plugins/zsh-history-substring-search".source =
-1
View File
@@ -46,7 +46,6 @@
odin2
surge
fire
decent-sampler
lsp-plugins
];
+1 -1
View File
@@ -307,6 +307,6 @@ in
AllowHybridSleep=no
AllowSuspendThenHibernate=no
'';
system.stateVersion = "25.11";
}
@@ -179,7 +179,8 @@ in
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.sane.enable = true;
hardware.sane.extraBackends = [ pkgs.hplipWithPlugin ];
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
@@ -1,5 +1,8 @@
{ pkgs, materusArgs, ... }:
{ pkgs, materusArgs, config, ... }:
{
mkk.neovim.enable = true;
mkk.dir = config.lib.file.mkOutOfStoreSymlink "/mkk/config";
programs.git = {
enable = true;
lfs.enable = true;
+1 -1
View File
@@ -11,7 +11,7 @@
'';
networking.hostName = "materusPC";
networking.wireless.iwd.enable = true;
#networking.wireless.iwd.enable = true;
networking.networkmanager.enable = true;
networking.firewall.enable = false;
+13 -1
View File
@@ -1,4 +1,16 @@
{ ... }:
isHm:
{ lib, materusArgs, ... }:
{
options.mkk.dir = lib.mkOption {
default = "${materusArgs.flake-path}";
type = lib.types.path;
};
imports = [
(import ./nvim.nix isHm)
];
config._module.args.mkk = import ./private/variables.nix;
}
+37
View File
@@ -0,0 +1,37 @@
isHm:
{
config,
lib,
pkgs,
...
}:
{
options.mkk.neovim = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
};
config =
if isHm then
# Home Manager
lib.mkIf config.mkk.neovim.enable {
xdg.configFile."nvim/init.lua".source = "${config.mkk.dir}/config/editor/neovim/init.lua";
home.packages = [
pkgs.neovim
pkgs.neovide
pkgs.fd
pkgs.ripgrep
pkgs.tree-sitter
];
}
else
# NixOS
lib.mkIf config.mkk.neovim.enable {
environment.systemPackages = [
pkgs.neovim
pkgs.neovide
];
};
}