Enable XDG desktop portal

This commit is contained in:
Kiana Sheibani 2024-02-09 18:27:44 -05:00
parent 10189645cf
commit 6c1d0151fe
3 changed files with 18 additions and 8 deletions

View file

@ -1,10 +1,16 @@
{ ... }:
{ pkgs, ... }:
{
home.sessionVariables = {
MOZ_ENABLE_WAYLAND = "1";
MOZ_USE_XINPUT2 = "1";
};
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config.common.default = [ "gtk" ];
};
imports = [
./hyprland.nix
./wltools.nix

View file

@ -7,13 +7,9 @@ in {
home.packages = with pkgs; [
swaybg
swayidle
wl-clipboard
wtype
wlroots
grim
slurp
imv
];
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
xdg.portal.config.hyprland.default = [ "hyprland" "gtk" ];
wayland.windowManager.hyprland = {
enable = true;

View file

@ -1,6 +1,14 @@
{ pkgs, config, ... }:
{
home.packages = [ pkgs.swaylock-effects ];
home.packages = with pkgs; [
swaylock-effects
wl-clipboard
wtype
wlroots
grim
slurp
imv
];
xdg.configFile = {
"swaylock/config".text = ''