55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{ config, pkgs, stylix, ... }:
|
|
{
|
|
programs.hyprland = {
|
|
enable = true;
|
|
# nvidiaPatches = true;
|
|
xwayland.enable = true;
|
|
};
|
|
|
|
services.xserver = {
|
|
enable = true;
|
|
};
|
|
|
|
services.displayManager.sddm.enable = true;
|
|
services.displayManager.sddm.wayland.enable = true;
|
|
|
|
environment.sessionVariables = {
|
|
# Cursor could be invisible without this
|
|
WLR_NO_HARDWARE_CURSORS = "1";
|
|
# Electron, use wayland
|
|
NIXOS_OZONE_WL = "1";
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
# bar
|
|
(waybar.overrideAttrs (oldAttrs: {
|
|
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
|
|
})
|
|
)
|
|
#Elkowar wacky widges (alternate bar)
|
|
#eww
|
|
|
|
# notifications
|
|
dunst
|
|
#mako
|
|
|
|
libnotify
|
|
|
|
# wallpaper
|
|
swww
|
|
|
|
# app-launcher
|
|
rofi-wayland
|
|
];
|
|
|
|
services.dbus.enable = true;
|
|
xdg.portal.enable = true;
|
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
|
|
hardware = {
|
|
opengl.enable = true;
|
|
nvidia.modesetting.enable = true;
|
|
};
|
|
}
|
|
|