fix(desktop): fix xdg-wlr file creation

This commit is contained in:
Yorick Barbanneau 2025-08-27 22:50:07 +02:00
parent 3ebb38d6d4
commit 720bd2f391
Signed by: ephase
GPG key ID: 246042E52B41FFCF

View file

@ -197,15 +197,17 @@ in
};
};
};
# When using `useDistributionPackage`, create wlr configuration to let user
# choose the right screen. This is a workarount to not have to configure
# it manually.
home.file."${config.xdg.configHome}/xdg-desktop-portal-wlr/config".text = mkIf cfg.xdg.useDistributionPortals ''
[screencast]
max_fps=30
chooser_type=simple
chooser_cmd=${pkgs.slurp}/bin/slurp -f %o -or
'';
home.file = mkIf cfg.xdg.useDistributionPortals {
"${config.xdg.configHome}/xdg-desktop-portal-wlr/config".text = ''
[screencast]
max_fps=30
chooser_type=simple
chooser_cmd=${pkgs.slurp}/bin/slurp -f %o -or
'';
};
};
}