.dotfiles/modules/nixos/client/xdg-portal.nix
Leon Schwarzäugl 7abc476d51
Some checks failed
Flake check / Check flake (push) Has been cancelled
feat: niri, new winters ip, mail fixes
2025-08-24 14:56:50 +02:00

20 lines
501 B
Nix

{ lib, config, pkgs, ... }:
{
options.swarselmodules.xdg-portal = lib.mkEnableOption "xdg portal config";
config = lib.mkIf config.swarselmodules.xdg-portal {
xdg.portal = {
enable = true;
# config = {
# common = {
# default = "wlr";
# };
# };
wlr.enable = true;
wlr.settings.screencast = {
output_name = "eDP-1";
chooser_type = "simple";
chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or";
};
};
};
}