Files
nix/home/desktop/default.nix
T
Miguel Palhas e8086e8528 Several hyprland updates:
plugins, new cursor, light/dark themes, new app launcher, ...
2026-02-16 17:33:40 +00:00

90 lines
2.1 KiB
Nix

{
inputs,
lib,
pkgs,
config,
outputs,
...
}:
{
imports = [
inputs.nix-colors.homeManagerModule
inputs.nixvim.homeModules.nixvim
../common/programs/default.nix
../common/programs/desktop
../common/programs/zen-browser.nix
../common/programs/hyprland
../common/programs/kitty
../common/programs/syncthing.nix
../common/programs/unity.nix
../common/programs/gpg.nix
../common/programs/ethui.nix
../common/programs/3d.nix
../common/programs/nerd-dictation.nix
../common/features/xdg.nix
../common/features/downloads-cleanup.nix
../common/features/bluetooth.nix
./monitors.nix
];
home.sessionVariables = {
LIBVA_DRIVER_NAME = "nvidia";
GDM_BACKEND = "nvidia-drm";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
# Larger cursor size for desktop (4K monitors)
XCURSOR_SIZE = lib.mkForce 42;
HYPRCURSOR_SIZE = lib.mkForce 42;
};
wayland.windowManager.hyprland.settings = {
env = [
"WEBKIT_DISABLE_DMABUF_RENDERER, 1"
"XCURSOR_SIZE, 42"
"HYPRCURSOR_SIZE, 42"
];
cursor = {
no_hardware_cursors = true; # For NVIDIA
};
exec-once = [
"hyprctl setcursor Nordzy-cursors 42"
];
windowrule = [
# ethui-dev
"workspace 2, match:title ethui-dev.*"
"no_initial_focus on, match:title ethui-dev.*"
"float on, match:title ethui-dev - dialog.*"
"workspace 1, match:title ethui.*"
"no_initial_focus on, match:title ethui.*"
"float on, match:title ethui - dialog.*"
"workspace 1, match:title ^\\[bevy\\].*"
"workspace 3 silent, match:class bevy-.*"
"no_initial_focus on, match:class bevy-.*"
"fullscreen on, match:class bevy-.*"
"workspace 1 silent, match:title egui-.*"
"border_size 0, match:title egui-.*"
"float on, match:title egui-.*"
"no_blur on, match:title egui-.*"
"move 100%-w-20 100%-h-20, match:title egui-.*"
];
render = {
direct_scanout = true;
};
};
programs.kitty.settings.font_size = 16;
home = {
username = lib.mkDefault "naps62";
stateVersion = lib.mkDefault "24.05";
};
}