more portal dickery

This commit is contained in:
notgne2 2022-11-03 08:16:31 -07:00
parent cd6e8147ab
commit 3bd782b1df
Signed by: notgne2
SSH Key Fingerprint: SHA256:qlFCAimT/PvNIG3u+aYT9pIqFCWgu6sNsWjpV1vHLIE
3 changed files with 15 additions and 20 deletions

View File

@ -103,16 +103,10 @@ in {
screenshotsPath = mkOption { screenshotsPath = mkOption {
description = "Path to save screenshots in"; description = "Path to save screenshots in";
default = "$HOME/Pictures/Screenshots"; default = "$HOME/Media/Screenshots";
type = types.str; type = types.str;
}; };
outputOptions = mkOption {
description = "Additional output options";
default = {};
type = types.attrsOf (types.attrsOf types.str);
};
screensaver = mkOption { screensaver = mkOption {
description = "ezpcusr screensaver"; description = "ezpcusr screensaver";
default = {}; default = {};

View File

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

View File

@ -212,12 +212,5 @@ in {
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]" ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
} }
''; '';
xdg.portal.enable = lib.mkDefault true;
xdg.portal.extraPortals = lib.mkDefault (with pkgs; [
xdg-desktop-portal-gnome
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk
]);
}; };
} }