Move xdg portals into home-manager

This commit is contained in:
Bun 2025-05-16 11:29:37 -04:00
parent f30a5824a5
commit 099bcb150b
4 changed files with 13 additions and 8 deletions

View file

@ -4,6 +4,7 @@
./clipman
./kanshi
./mako
./portals
./rofi
./swayidle
./swaylock

View file

@ -0,0 +1,12 @@
{ config, pkgs, ... }:
{
xdg.portal = {
enable = config.home.desktop.enable;
configPackages = config.xdg.portal.extraPortals;
xdgOpenUsePortal = true;
extraPortals = with pkgs; [
xdg-desktop-portal-gtk
xdg-desktop-portal-wlr
];
};
}

View file

@ -4,7 +4,6 @@
./displaymanager
./keyd
./libvirtd
./portals
./snowflake
./ssh
./tlp

View file

@ -1,7 +0,0 @@
{ config, lib, pkgs, ... }:
{
xdg.portal.extraPortals = with pkgs; lib.mkIf config.system.desktop.enable [
xdg-desktop-portal-gnome
xdg-desktop-portal-wlr
];
}