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
693 B
Nix
Raw Normal View History

2024-03-24 16:15:15 +01:00
{ config, pkgs, ... }: {
# x11
services.xserver.enable = true;
services.xserver = {
layout = "us";
xkbVariant = "";
};
# xdg portals
2024-04-03 23:26:46 +02:00
xdg.portal.enable = true;
2024-03-24 16:15:15 +01:00
xdg.portal.extraPortals = with pkgs; [
xdg-desktop-portal-wlr
];
# gnome
2024-04-03 23:26:46 +02:00
services.xserver.displayManager.gdm.enable = true;
2024-06-04 13:20:19 +02:00
services.xserver.displayManager.gdm.wayland = true;
2024-03-24 16:15:15 +01:00
services.xserver.desktopManager.gnome.enable = true;
2024-06-04 13:16:29 +02:00
# hyprland
programs.hyprland = {
2024-06-04 13:25:46 +02:00
enable = true;
2024-06-04 13:16:29 +02:00
xwayland.enable = true;
};
2024-03-24 16:15:15 +01:00
# environment variables for hyprland
environment.sessionVariables = {
# hint electron apps to use wayland
NIXOS_OZONE_WL = "1";
};
2024-03-24 16:15:15 +01:00
}