33 lines
842 B
Nix
33 lines
842 B
Nix
{ pkgs, ... }:
|
|
|
|
# Hyprland (wayland) desktop: compositor, login manager, audio, portals.
|
|
# Reusable for any host that wants a local GUI session (currently: terra).
|
|
{
|
|
programs.hyprland.enable = true;
|
|
|
|
services.greetd = {
|
|
enable = true;
|
|
settings.default_session.command =
|
|
"${pkgs.tuigreet}/bin/tuigreet --time --cmd Hyprland";
|
|
};
|
|
|
|
# Audio (pipewire replaces pulseaudio/jack).
|
|
security.rtkit.enable = true;
|
|
services.pipewire = {
|
|
enable = true;
|
|
alsa.enable = true;
|
|
pulse.enable = true;
|
|
};
|
|
|
|
# Screen-share / file-picker portals for wayland apps.
|
|
xdg.portal = {
|
|
enable = true;
|
|
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
|
|
};
|
|
|
|
hardware.graphics.enable = true; # OpenGL/Vulkan for the compositor + apps
|
|
services.libinput.enable = true;
|
|
|
|
networking.networkmanager.enable = true;
|
|
}
|