more portal dickery
This commit is contained in:
parent
cd6e8147ab
commit
3bd782b1df
3 changed files with 15 additions and 20 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue