flake/users/guanranwang/home-manager/applications/hyprland/default.nix

42 lines
823 B
Nix
Raw Normal View History

{
2023-11-28 05:40:22 +00:00
#inputs,
lib,
...
}: {
imports = [
2023-12-08 15:44:35 +00:00
../cliphist
2023-11-28 05:40:22 +00:00
../dunst
../rofi
../swayidle
../swaylock
../swww
../udiskie
../waybar
];
home.sessionVariables = {
QT_IM_MODULE = lib.mkForce "wayland"; # use text-input-v2
GTK_IM_MODULE = lib.mkForce "wayland"; # use text-input-v3
NIXOS_OZONE_WL = "1"; # let electron applications use wayland
};
2023-12-18 18:20:08 +00:00
wayland.windowManager.hyprland = {
enable = true;
enableNvidiaPatches = true;
#plugins = with inputs.hyprland-plugins.packages.${pkgs.system}; [
# csgo-vulkan-fix
#];
2023-12-18 18:20:08 +00:00
extraConfig = ''
source = ~/.config/hypr/main.conf
source = ~/.config/hypr/keybinds.conf
source = ~/.config/hypr/autostart.conf
'';
};
xdg.configFile."hypr" = {
2023-12-18 18:17:14 +00:00
source = ./hypr;
recursive = true;
};
}