more portal dickery
This commit is contained in:
parent
cd6e8147ab
commit
3bd782b1df
@ -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 = {};
|
||||
|
@ -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 = {
|
||||
|
@ -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
|
||||
]);
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user