3
0
Fork 0
forked from mirrors/nixpkgs

nixos/wayland: Add xdg.portal.config or xdg.portal.configPackages

See the changes in x-d-p 1.17 for details.
This commit is contained in:
Bobby Rong 2023-09-19 22:02:58 +08:00 committed by Jan Tojnar
parent 39a1279b4d
commit fd788f9d1a
3 changed files with 5 additions and 0 deletions

View file

@ -64,6 +64,7 @@ in
xdg.portal = {
enable = mkDefault true;
extraPortals = [ finalPortalPackage ];
configPackages = mkDefault [ cfg.finalPackage ];
};
};

View file

@ -149,6 +149,8 @@ in {
"sway/config".source = mkOptionDefault "${cfg.package}/etc/sway/config";
};
};
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050913
xdg.portal.config.sway.default = mkDefault [ "wlr" "gtk" ];
# To make a Sway session available if a display manager like SDDM is enabled:
services.xserver.displayManager.sessionPackages = optionals (cfg.package != null) [ cfg.package ]; }
(import ./wayland-session.nix { inherit lib pkgs; })

View file

@ -43,6 +43,8 @@ in
xdg.portal = {
enable = lib.mkDefault true;
wlr.enable = lib.mkDefault true;
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050914
config.wayfire.default = lib.mkDefault [ "wlr" "gtk" ];
};
};
}