Fix screen sharing
This commit is contained in:
parent
a5fb079c06
commit
c65c53cf73
2 changed files with 56 additions and 11 deletions
|
@ -28,6 +28,29 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
portal = {
|
||||||
|
enable = true;
|
||||||
|
configPackages = with pkgs; [
|
||||||
|
# xdg-desktop-portal-wlr
|
||||||
|
# xdg-desktop-portal-gtk
|
||||||
|
# xdg-desktop-portal-hyprland
|
||||||
|
xdg-desktop-portal-gnome
|
||||||
|
# xdg-desktop-portal
|
||||||
|
# kdePackages.xdg-desktop-portal-kde
|
||||||
|
# libsForQt5.xdg-desktop-portal-kde
|
||||||
|
gnome-keyring
|
||||||
|
];
|
||||||
|
extraPortals = with pkgs; [
|
||||||
|
# xdg-desktop-portal-wlr
|
||||||
|
# xdg-desktop-portal-gtk
|
||||||
|
# xdg-desktop-portal-hyprland
|
||||||
|
xdg-desktop-portal-gnome
|
||||||
|
# xdg-desktop-portal
|
||||||
|
# kdePackages.xdg-desktop-portal-kde
|
||||||
|
gnome-keyring
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
home.packages = [ pkgs.xdg-utils ];
|
home.packages = [ pkgs.xdg-utils ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,29 +1,51 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
xdg = {
|
xdg = {
|
||||||
|
autostart.enable = true;
|
||||||
|
menus.enable = true;
|
||||||
|
mime.enable = true;
|
||||||
|
icons.enable = true;
|
||||||
portal = {
|
portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
configPackages = with pkgs; [
|
configPackages = with pkgs; [
|
||||||
xdg-desktop-portal-wlr
|
# xdg-desktop-portal-wlr
|
||||||
xdg-desktop-portal-gtk
|
# xdg-desktop-portal-gtk
|
||||||
xdg-desktop-portal-hyprland
|
# xdg-desktop-portal-hyprland
|
||||||
xdg-desktop-portal-gnome
|
xdg-desktop-portal-gnome
|
||||||
xdg-desktop-portal
|
# xdg-desktop-portal
|
||||||
kdePackages.xdg-desktop-portal-kde
|
# kdePackages.xdg-desktop-portal-kde
|
||||||
libsForQt5.xdg-desktop-portal-kde
|
# libsForQt5.xdg-desktop-portal-kde
|
||||||
gnome-keyring
|
gnome-keyring
|
||||||
];
|
];
|
||||||
extraPortals = with pkgs; [
|
extraPortals = with pkgs; [
|
||||||
xdg-desktop-portal-wlr
|
# xdg-desktop-portal-wlr
|
||||||
xdg-desktop-portal-gtk
|
# xdg-desktop-portal-gtk
|
||||||
xdg-desktop-portal-hyprland
|
# xdg-desktop-portal-hyprland
|
||||||
xdg-desktop-portal-gnome
|
xdg-desktop-portal-gnome
|
||||||
xdg-desktop-portal
|
# xdg-desktop-portal
|
||||||
kdePackages.xdg-desktop-portal-kde
|
# kdePackages.xdg-desktop-portal-kde
|
||||||
gnome-keyring
|
gnome-keyring
|
||||||
];
|
];
|
||||||
xdgOpenUsePortal = true;
|
xdgOpenUsePortal = true;
|
||||||
wlr.enable = true;
|
wlr.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
|
security.polkit.enable = true;
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
systemd.user.services.niri-flake-polkit = {
|
||||||
|
description = "PolicyKit Authentication Agent provided by niri-flake";
|
||||||
|
wantedBy = [ "niri.service" ];
|
||||||
|
after = [ "graphical-session.target" ];
|
||||||
|
partOf = [ "graphical-session.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = "${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1";
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = 1;
|
||||||
|
TimeoutStopSec = 10;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue