37 lines
688 B
Nix
37 lines
688 B
Nix
{ config, pkgs, ... }: {
|
|
|
|
# x11
|
|
services.xserver = {
|
|
enable = true;
|
|
layout = "us";
|
|
xkbVariant = "";
|
|
};
|
|
|
|
# xdg portals
|
|
xdg.portal {
|
|
enable = true;
|
|
extraPortals = with pkgs; [
|
|
xdg-desktop-portal-wlr
|
|
];
|
|
};
|
|
|
|
# gnome
|
|
services.xserver.displayManager.gdm.enable = true;
|
|
services.xserver.displayManager.gdm.wayland = true;
|
|
services.xserver.desktopManager.gnome.enable = true;
|
|
|
|
# hyprland
|
|
programs.hyprland = {
|
|
enable = true;
|
|
xwayland.enable = true;
|
|
};
|
|
|
|
# environment variables for hyprland
|
|
environment.sessionVariables = {
|
|
|
|
# hint electron apps to use wayland
|
|
NIXOS_OZONE_WL = "1";
|
|
|
|
};
|
|
}
|