14 lines
527 B
Nix
14 lines
527 B
Nix
|
{ config, ... }:
|
||
|
let
|
||
|
cfg = config.sane.programs.xdg-desktop-portal-wlr;
|
||
|
in
|
||
|
{
|
||
|
sane.programs.xdg-desktop-portal-wlr = {
|
||
|
fs.".config/xdg-desktop-portal/portals/wlr.portal".symlink.target =
|
||
|
"${cfg.package}/share/xdg-desktop-portal/portals/wlr.portal";
|
||
|
# XXX: overcome bug when manually setting `$XDG_DESKTOP_PORTAL_DIR`
|
||
|
# which causes *.portal files to be looked for in the toplevel instead of under `portals/`
|
||
|
fs.".config/xdg-desktop-portal/wlr.portal".symlink.target = "portals/wlr.portal";
|
||
|
};
|
||
|
}
|