Remove Hyprland and make Sway work on Nvidia

This commit is contained in:
Bun 2025-05-05 01:43:21 -04:00
parent 30b3ff1d0f
commit 1a4e8b4b88
12 changed files with 12 additions and 383 deletions

View file

@ -1,9 +1,10 @@
{ config, lib, ... }:
{
config = lib.mkIf config.system.desktop.enable {
programs = {
hyprland.enable = true;
sway.enable = true;
programs.sway = {
enable = true;
extraOptions = [ "--unsupported-gpu" ];
wrapperFeatures.gtk = true;
};
environment.sessionVariables.WLR_RENDERER = "vulkan";

View file

@ -1,14 +1,7 @@
{ config, lib, pkgs, ... }:
{
xdg.portal = lib.mkIf config.system.desktop.enable {
wlr = {
enable = lib.mkForce true;
settings.screencast = {
max_fps = 60;
chooser_type = "simple";
chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or -B 00000066 -b 00000099";
};
};
extraPortals = with pkgs; [ xdg-desktop-portal-gnome ];
};
xdg.portal.extraPortals = with pkgs; lib.mkIf config.system.desktop.enable [
xdg-desktop-portal-gnome
xdg-desktop-portal-wlr
];
}