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