fix: keep niri as default graphical session

This commit is contained in:
2026-06-25 15:18:49 +09:00
parent 089e185bd8
commit 97af3edd95
6 changed files with 41 additions and 8 deletions
+10 -2
View File
@@ -15,19 +15,27 @@ in
config = lib.mkIf cfg.enable {
programs.xwayland.enable = true;
# Keep global Wayland portal settings in this module so hardware/application
# modules do not each append their own portal backends.
xdg.portal = {
enable = true;
wlr.enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-wlr
pkgs.xdg-desktop-portal-gnome
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-wlr
];
xdgOpenUsePortal = true;
config = {
common.default = [
common.default = [ "gtk" ];
niri.default = [
"wlr"
"gtk"
];
gnome.default = [
"gnome"
"gtk"
];
};
};