update nvim

This commit is contained in:
2026-09-20 09:48:43 -05:00
parent 87234ac902
commit 5eace727b0
4 changed files with 59 additions and 76 deletions

View File

@@ -0,0 +1,52 @@
{ self, ... }: {
flake.homeModules.nathan-packagesFull = { config, lib, pkgs, ... }: {
imports = [
self.homeModules.nathan-packagesMinimal
];
config = with lib; mkMerge [
{
nixpkgs.config = {
allowUnfree = true;
};
home.packages = with pkgs; [
handbrake
quickemu
bottles
lmms
#unfree {
spotify
discord
#}
rustdesk-flutter
mpv
vlc
pavucontrol
rpi-imager
tigervnc
keepassxc
localsend
#3D modeling/printing
blender
freecad-wayland
cura-appimage
#productivity
libreoffice
#games
prismlauncher
];
}
];
};
}

View File

@@ -1,11 +1,6 @@
{ ... }: {
flake.homeModules.nathan = { config, lib, pkgs, ... }: {
options.olympus.packageSet = lib.mkOption {
type = lib.types.str;
default = "full";
};
flake.homeModules.nathan-packagesMinimal = { config, lib, pkgs, ... }: {
config = with lib; mkMerge [
{
@@ -66,47 +61,6 @@
];
})
(mkIf (config.olympus.packageSet == "full") {
nixpkgs.config = {
allowUnfree = true;
};
home.packages = with pkgs; [
handbrake
quickemu
bottles
lmms
#unfree {
spotify
discord
#}
rustdesk-flutter
mpv
vlc
pavucontrol
rpi-imager
tigervnc
keepassxc
localsend
#3D modeling/printing
blender
freecad-wayland
cura-appimage
#productivity
libreoffice
#games
prismlauncher
];
})
];
};
}

View File

@@ -61,36 +61,9 @@
(useWithGraphical (laptop ++ homebox ++ iso) nathan-kitty)
(useWithGraphical (laptop ++ homebox ++ iso) nathan-scripts)
(useWithGraphical (laptop ++ homebox ++ iso) nathan-pywal)
(useWithGraphical (laptop ++ homebox) nathan-packagesFull)
(useWith (iso ++ pi4 ++ z2w ++ homebox ++ wsl) nathan-packagesMinimal)
(useWith (laptop ++ homebox) nathan-sops)
(useWithGraphical laptop {
wayland.windowManager.hyprland.extraConfig = ''
monitor=eDP-1,1920x1080@60,0x0,1
bind = CTRL SHIFT, XF86Launch2, exec, bash -c 'if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then pkexec --user root /nix/var/nix/profiles/system/bin/switch-to-configuration switch; else pkexec --user root /nix/var/nix/profiles/system/specialisation/docked/bin/switch-to-configuration switch; fi'
bind = ALT, Escape, exec, if [[ $(hyprctl monitors | grep 0x0 | sed -n -e "s/\t*1920x1080@//" -e "s/.[1234567890]* at 0x0//p") == 300 ]]; then hyprctl keyword monitor eDP-1,1920x1080@60,0x0,1; else hyprctl keyword monitor eDP-1,1920x1080@300,0x0,1; fi
'';
})
(useWithGraphical (iso ++ homebox) {
wayland.windowManager.hyprland.extraConfig = ''
monitor=,preferred,auto,1
'';
})
(useWithGraphical (homebox) {
olympus = {
packageSet = lib.mkForce "full";
};
})
(useWith (iso ++ pi4 ++ z2w ++ homebox ++ wsl) {
olympus = {
packageSet = lib.mkDefault "minimal";
};
})
];
};
};

View File

@@ -33,6 +33,8 @@ vim.o.wrap = false
vim.o.confirm = true
vim.o.exrc = true
vim.api.nvim_create_autocmd('UIEnter', {
callback = function()
vim.o.clipboard = 'unnamedplus'
@@ -171,6 +173,8 @@ vim.keymap.set({ 'n' }, '<leader>S', ':%s `<C-r><C-w>`<C-r><C-w>`gI<Left><Left><
vim.keymap.set({ 'n' }, '<leader>e', '<cmd>execute \'split | wincmd j | resize 10 | terminal\' | normal i<CR>')
vim.keymap.set({ 'n' }, '<C-t>', '<cmd>trust<CR>')
--vim.keymap.set({ 'n' }, '<C-y>', function() cmp.mapping.confirm({ select = true }) end)
vim.keymap.set({ 'v' }, '<leader>s', 'y:%s `<C-R>"`<C-R>"`gI<Left><Left><Left>')