mirror of
https://github.com/materusPL/nixos-config
synced 2026-06-24 17:36:41 +00:00
Neovim init config. Formatting. Updates.
This commit is contained in:
@@ -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 =
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
odin2
|
||||
surge
|
||||
fire
|
||||
decent-sampler
|
||||
lsp-plugins
|
||||
];
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user