Files
nixos-config/home-manager/modules/hypr/hypr.nix
T
2025-11-19 14:16:10 +03:00

51 lines
1.2 KiB
Nix

{ config, pkgs, ... }:
# TODO:
# - make shortcuts for hyprctl commands
# - split into multiple files
# - configure comands like hyprpaper, waybar, etc.
{
home.packages = with pkgs; [
hyprland # already in nixos modules, but here for hyprctl
brightnessctl
];
programs.hyprpanel = {
enable = true;
systemd.enable = true;
};
programs.fuzzel.enable = true;
wayland.windowManager.hyprland.settings = {
exec-once = [
# Fixes cursor themes in gnome apps under hyprland
"gsettings set org.gnome.desktop.interface cursor-theme '${config.home.pointerCursor.name}'"
"gsettings set org.gnome.desktop.interface cursor-size ${
toString config.home.pointerCursor.size
}"
];
};
wayland.windowManager.hyprland = {
enable = true;
settings = {
exec = "hyprctl dispatch submap global";
submap = "global";
debug = { disable_logs = false; };
};
};
imports = [
./hyprland/env.nix
./hyprland/execs.nix
./hyprland/general.nix
./hyprland/rules.nix
./hyprland/colors.nix
./hyprland/keybinds.nix # done
./hyprland/active.nix
./hyprlock.nix # done
./hypridle.nix # done
];
}