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 = { home.sessionVariables = {
MOZ_ENABLE_WAYLAND = "1"; MOZ_ENABLE_WAYLAND = "1";
MOZ_USE_XINPUT2 = "1"; MOZ_USE_XINPUT2 = "1";
}; };
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config.common.default = [ "gtk" ];
};
imports = [ imports = [
./hyprland.nix ./hyprland.nix
./wltools.nix ./wltools.nix

View file

@ -7,13 +7,9 @@ in {
home.packages = with pkgs; [ home.packages = with pkgs; [
swaybg swaybg
swayidle 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 = { wayland.windowManager.hyprland = {
enable = true; enable = true;

View file

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