Files
nix/desktop/hyprland.nix
T
2026-05-08 22:00:11 -05:00

70 lines
1.1 KiB
Nix

#
# Configuration for a Hyprland stack
#
{ config, lib, pkgs, ... }:
{
imports = [
./base.nix
./flatpak.nix
./fonts.nix
./packages.nix
./sddm.nix
];
services.displayManager.defaultSession = "hyprland-uwsm";
# Hyprland as the star of the show
programs.hyprland.enable = true;
programs.hyprland.withUWSM = true;
# XDG portal
xdg.portal.enable = true;
xdg.portal.extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-hyprland
];
xdg.portal.config.hyprland.default = [
"hyprland"
"gtk"
];
# Supplementary packages
environment.systemPackages = with pkgs; [
# Hyprland stack
dunst
hyprcursor
hypridle
hyprland
hyprlock
rofi
awww
waybar
wlsunset
wofi
# Helpers
flatpak
networkmanagerapplet
python3
xdg-utils
# Common utilities
brightnessctl
foot
pavucontrol
pulseaudio # For pactl
# Clipboarding
grim
slurp
wl-clipboard
];
# Cursor theme for Hyprland and regular Wayland/XWayland clients.
environment.sessionVariables = {
XCURSOR_THEME = "breeze_cursors";
XCURSOR_SIZE = "24";
HYPRCURSOR_SIZE = "24";
};
}