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 {
description = "Path to save screenshots in";
default = "$HOME/Pictures/Screenshots";
default = "$HOME/Media/Screenshots";
type = types.str;
};
outputOptions = mkOption {
description = "Additional output options";
default = {};
type = types.attrsOf (types.attrsOf types.str);
};
screensaver = mkOption {
description = "ezpcusr screensaver";
default = {};

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 = {

View File

@ -212,12 +212,5 @@ in {
["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
]);
};
}