Compare commits

..

2 Commits

2 changed files with 64 additions and 63 deletions

View File

@ -1,8 +1,5 @@
{ inputs, pkgs, ... }: { inputs, pkgs, ... }: {
{ imports = [ inputs.nixvim.homeManagerModules.nixvim ];
imports = [
inputs.nixvim.homeManagerModules.nixvim
];
# Nixvim # Nixvim
programs.nixvim = { programs.nixvim = {
@ -10,15 +7,11 @@
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
keymaps = [ keymaps = [{
{
action = "<cmd>Oil<cr>"; action = "<cmd>Oil<cr>";
key = "<leader>e"; key = "<leader>e";
options = { options = { silent = true; };
silent = true; }];
};
}
];
options = { options = {
hlsearch = false; hlsearch = false;
@ -52,6 +45,10 @@
maplocalleader = ";"; maplocalleader = ";";
}; };
extraConfigLuaPre = ''
vim.loader.enable()
'';
extraConfigLuaPost = '' extraConfigLuaPost = ''
vim.notify = require("mini.notify").make_notify() vim.notify = require("mini.notify").make_notify()
''; '';
@ -61,7 +58,12 @@
keymaps = { keymaps = {
addFile = "<leader>a"; addFile = "<leader>a";
toggleQuickMenu = "<C-e>"; toggleQuickMenu = "<C-e>";
navFile = { "1" = "<C-j>"; "2" = "<C-k>"; "3" = "<C-l>"; "4" = "<C-;>"; }; navFile = {
"1" = "<C-j>";
"2" = "<C-k>";
"3" = "<C-l>";
"4" = "<C-;>";
};
}; };
}; };
@ -101,9 +103,7 @@
mini = { mini = {
enable = true; enable = true;
modules = { modules = {
statusline = { statusline = { set_vim_settings = false; };
set_vim_settings = false;
};
comment = { }; comment = { };
notify = { }; notify = { };
}; };
@ -172,11 +172,8 @@
nvim-cmp = { nvim-cmp = {
enable = true; enable = true;
autoEnableSources = true; autoEnableSources = true;
sources = [ sources =
{name = "nvim_lsp";} [ { name = "nvim_lsp"; } { name = "path"; } { name = "snippy"; } ];
{name = "path";}
{name = "snippy";}
];
snippet.expand = "snippy"; snippet.expand = "snippy";
mapping = { mapping = {
"<C-l>" = "cmp.mapping.confirm({ select = false })"; "<C-l>" = "cmp.mapping.confirm({ select = false })";
@ -216,8 +213,6 @@
keywords = [ "bold" ]; keywords = [ "bold" ];
}; };
}; };
extraPlugins = with pkgs.vimPlugins; [ extraPlugins = with pkgs.vimPlugins; [ vim-snippets ];
vim-snippets
];
}; };
} }

View File

@ -71,6 +71,9 @@
settings = { General = { InputMethod = ""; }; }; settings = { General = { InputMethod = ""; }; };
}; };
# Set default sddm session to plasma wayland
services.xserver.displayManager.defaultSession = "plasmawayland";
# Setup plasma with excluding a couple unnecesarry packages # Setup plasma with excluding a couple unnecesarry packages
services.xserver.desktopManager.plasma5.enable = true; services.xserver.desktopManager.plasma5.enable = true;
environment.plasma5.excludePackages = with pkgs.libsForQt5; [ environment.plasma5.excludePackages = with pkgs.libsForQt5; [
@ -112,8 +115,11 @@
# Open Tablet Driver setup # Open Tablet Driver setup
hardware.opentabletdriver.enable = true; hardware.opentabletdriver.enable = true;
# load amdgpu at boot
boot.initrd.kernelModules = [ "amdgpu" ];
# Load nvidia driver for Xorg and Wayland # Load nvidia driver for Xorg and Wayland
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "amdgpu" "nvidia" ];
# Steam settings # Steam settings
programs.steam = { programs.steam = {