This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/systems/desktop.nix

35 lines
680 B
Nix

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