more portal dickery

This commit is contained in:
notgne2 2022-11-03 08:16:31 -07:00
parent cd6e8147ab
commit 3bd782b1df
No known key found for this signature in database
3 changed files with 15 additions and 20 deletions

View file

@ -10,11 +10,19 @@ in {
options.ezpc.enable = mkEnableOption "Enable ezpc system stuff";
config = mkIf cfg.enable {
xdg.portal.enable = lib.mkDefault true;
xdg.portal.extraPortals = lib.mkDefault (with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
]);
xdg.portal = {
enable = lib.mkDefault true;
wlr = {
enable = true;
settings = {
screencast = {
max_fps = 30;
chooser_type = "simple";
chooser_cmd = "${pkgs.slurp}/bin/slurp -f %o -or";
};
};
};
};
environment.sessionVariables = {
QT_QPA_PLATFORM = "wayland-egl;xcb";
@ -27,7 +35,7 @@ in {
};
environment.loginShellInit = lib.mkAfter ''
[[ "$(tty)" == /dev/tty1 ]] exec sway
[[ "$(tty)" == /dev/tty1 ]] && exec sway
'';
i18n.inputMethod = {