[vega] Update config; make gui config generic. [nvim] Use Snacks smart finder instead of fzf and avoid race condition

This commit is contained in:
2025-04-24 13:54:05 -07:00
parent 3198414be4
commit a2f9956824
8 changed files with 46 additions and 54 deletions

View File

@@ -1,6 +1,7 @@
return {
-- https://www.lazyvim.org/extras/editor/fzf
"ibhagwan/fzf-lua",
enabled = false,
keys = {
{
"<leader><space>",

View File

@@ -0,0 +1,13 @@
return {
"folke/snacks.nvim",
---@type snacks.Config
keys = {
{
"<leader><space>",
function()
Snacks.picker.smart()
end,
desc = "Smart Find Files",
},
},
}

View File

@@ -1,3 +1,4 @@
-- This is disabled because both snacks and fzf do a better job.
return {
"nvim-telescope/telescope.nvim",
enabled = false,

29
system/features/gui.nix Normal file
View File

@@ -0,0 +1,29 @@
{ ... }: {
# Enable the X11 windowing system and a display manager
services.xserver = {
enable = true;
displayManager.gdm = {
enable = true;
wayland = true;
};
# displayManager.sddm = {
# enable = true;
# wayland.enable = true;
# };
# Configure keymap in X11
xkb = {
layout = "us";
variant = "";
};
};
# services.displayManager.ly.enable = true;
# Enable Hyprland so it shows up in the menu
programs.hyprland = {
enable = true;
withUWSM = true;
xwayland.enable = true;
};
}

View File

@@ -4,7 +4,6 @@
{
pkgs,
inputs,
...
}:
@@ -57,33 +56,6 @@
'';
};
# Enable the X11 windowing system and a display manager
services.xserver = {
enable = true;
displayManager.gdm = {
enable = true;
wayland = true;
};
# displayManager.sddm = {
# enable = true;
# wayland.enable = true;
# };
};
# services.displayManager.ly.enable = true;
# Enable Hyprland so it shows up in the menu
programs.hyprland = {
enable = true;
withUWSM = true;
xwayland.enable = true;
};
# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
variant = "";
};
# Enable CUPS to print documents.
services.printing = {
enable = true;

View File

@@ -4,6 +4,7 @@
./configuration.nix
./hardware-configuration.nix
../../authorized-keys.nix
../../features/gui.nix
];
nixpkgs.config.allowUnfree = true;

View File

@@ -4,7 +4,6 @@
{
pkgs,
inputs,
...
}:
@@ -38,16 +37,6 @@
LC_TIME = "en_US.UTF-8";
};
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
services.xserver.enable = true;
services.displayManager.sddm = {
enable = true;
theme = "sddm-astronaut-theme";
};
# Unlock the default keyring on login to hyprland
security.pam.services.hyprland.enableGnomeKeyring = true;
@@ -59,21 +48,6 @@
'';
};
# Enable Hyprland so it shows up in the menu
programs.hyprland = {
enable = true;
withUWSM = true;
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
portalPackage =
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
};
# Configure keymap in X11
services.xserver.xkb = {
layout = "us";
variant = "";
};
# Enable CUPS to print documents.
services.printing = {
enable = true;

View File

@@ -4,6 +4,7 @@
./configuration.nix
./hardware-configuration.nix
../../authorized-keys.nix
../../features/gui.nix
];
nixpkgs.config.allowUnfree = true;